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, ...
Answered

How to set value to Form Control in Dynamics 365?

(0) ShareShare
ReportReport
Posted on by 314

Hi Experts! Greetings!
So, I want to set a value to a form control. How can I do that?
Because, looking back from AX2012, the .value() function does not exist anymore (FormControlName.value(ValueToSet))

pastedimage1627712275471v1.png

I have the same question (0)
  • Verified answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: How to set value to Form Control in Dynamics 365?

    If the field is an unbound field and you have set autoDeclaration to Yes, you can assign an initial value according to the type of field by looking at the list below.

    FormStringControl1.text("testStringControl");
    FormStaticTextControl1.text("testStaticTextControl1");
    FormIntegerControl1.value(3);
    FormRealControl1.realValue(3.4);
    FormRadioButtonControl1.enumType(enumNum(NoYes));    
    FormRadioButtonControl1.selection(NoYes::Yes);//NoYes
    FormStringEdtControl2.text("testAccountName");//AccountName
    FormCheckBoxControl1.value(NoYes::Yes);
    FormComboBoxEnumControl1.selection(SalesType::Sales);

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
André Arnaud de Calavon Profile Picture

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

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 850 User Group Leader

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 827

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans