web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Change enum radiobutton text

(0) ShareShare
ReportReport
Posted on by 293

Is it possible to change the label of a radiobutton that is linked to an enum at run time?

Example, my enum has 3 elements "A"; "B" and "C".  On my form is a radio button group that displays the enum list.  I want other labels on my form that what is set for the enum.  And, I can't edit the enum's labels.

 

Is it possible?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    blogs.msdn.com/.../runtime-generated-combobox-for-an-enum.aspx

    Here is one solution.  This is for comboboxes but you can easily adapt it for radiobuttons.  This might not be optimal but might be worth a shot.

    Good luck.

    Kind regards.

  • Verified answer
    Luegisdorf Profile Picture
    1,930 on at

    hi Celeste

    You can not modify the text, but you can remove an renew the elements:

    Place code like this in the run() of the formRun

       RadioButton.clear();

       RadioButton.add("my A");

       RadioButton.add("my B");

       RadioButton.add("my C");

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#2
TAHER Mehdi Profile Picture

TAHER Mehdi 3

#3
Nakul Profile Picture

Nakul 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans