# Dynamic texts for labels in a custom panel

**URL:** <https://forum.litium.com/t/dynamic-texts-for-labels-in-a-custom-panel/3411>\
**Category:** Questions\
**Tags:** litium-8\
**Created:** [December 5, 2024, 2:11pm UTC](https://forum.litium.com/t/dynamic-texts-for-labels-in-a-custom-panel/3411 "2024-12-05T14:11:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zetterbergm](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zetterbergm](https://forum.litium.com/u/zetterbergm)\
**Post date:** [December 5, 2024, 2:11pm UTC](https://forum.litium.com/t/dynamic-texts-for-labels-in-a-custom-panel/3411/1 "2024-12-05T14:11:45Z")

</div>

I have a custom panel where I would like the possibility for the user to change the label texts and not be limited to the text set in the .resx file.

I have tried to use the AsWebsiteText but since the page is not a webpage i guess it can not be used. Are there any other options?

Litium version: 8.17.4

---

<div class="post-metadata">

**Author:** ![Martin.Brandt](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/martin.brandt/32/974_2.png) [@Martin.Brandt](https://forum.litium.com/u/Martin.Brandt)\
**Post date:** [December 5, 2024, 6:34pm UTC](https://forum.litium.com/t/dynamic-texts-for-labels-in-a-custom-panel/3411/2 "2024-12-05T18:34:09Z")

</div>

Perhaps save it as settings in SettingService - and use the panel GetSettingsAsync() to load it?

```auto
public override async Task<SettingsModel> GetSettingsAsync()
    {
        return new SettingsModel();
    }
 
    public class SettingsModel : IPanelSettings
    {
        public string Title { get; set; } = "Sample Title";
    }

```

> **[How to create custom panel](https://docs.litium.com/platform/guides/back-office-ui-extensions/creating-custom-panel)**
>
> How to create custom panel

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [January 2, 2025, 6:34pm UTC](https://forum.litium.com/t/dynamic-texts-for-labels-in-a-custom-panel/3411/3 "2025-01-02T18:34:59Z")

</div>

Closed on January 2, 2025, 6:34pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
