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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Hide button on FormRadioControlButton

(0) ShareShare
ReportReport
Posted on by

I need to hide an option on the FormRadioControlButton

Not sure how to get the reference.

I've got this part..

FormRadioControl RadioControl = element.design().controlName(formControlStr(Form,FormRadioButtonControl));

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi brianmaric,

    You are doing this in custom or standard form?

    If its a custom form you can set the auto declaration property of the Radio button control to yes and add the below code to hide that.

    ControlName.visible(false);

    Thanks,

    Girish S.

  • brianmaric Profile Picture
    on at

    I just want to hide one of the radio button options but want to display the rest

  • GirishS Profile Picture
    27,827 Moderator on at

    Are you referring to Enum?

    So you need to hide some of the enum value?

    Can you show me the screenshot of the radio button values?

    Thanks,

    Girish S

  • Arunraj Rajasekar Profile Picture
    1,743 on at

    Hi brianmaric

    Is the radio button a type of enum field?

  • brianmaric Profile Picture
    on at

    Yes, it has three values

  • brianmaric Profile Picture
    on at

    pastedimage1666376479855v1.png

  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi brianmaric,

    You need to override the enter method of the radio button control and add the following code.

    public void enter()
    {
        super(); 
        this.delete(enum2str(YourEnumName::Other));
    }

    Thanks,

    Girish S. 

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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans