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

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,826 Moderator on at

    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…

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 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans