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

Community site session details

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

field group

(1) ShareShare
ReportReport
Posted on by 1,881
if a field is in a field group in the table, and this field group is used inside the form. If we want to play with the visibility of one of the fields in this field group, then is this the only way:
this.design().controlName('control1').visible(false);

as auto declaration is disabled and formControlStr() doesn't work



 
Categories:
I have the same question (0)
  • Suggested answer
    Sagar121 Profile Picture
    586 on at
    field group
    Hi, You can try this. Simply get the form Data Source.
     
    e.g. FormDataSource fds = formRun.dataSource();
     
    if(condition matched)
    {
    fds.object(fieldNum(TableName, Fieldname).visible(false);
    }
  • André Arnaud de Calavon Profile Picture
    298,007 Super User 2025 Season 2 on at
    field group
    Hi ..,

    You can also set the visibility of the field via the data source as not visible using X++ coding. I'm currently not able to open VIsual Studio to find an example for you. 

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 868 User Group Leader

#2
André Arnaud de Calavon Profile Picture

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

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 661

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans