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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 538 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 448

#3
Adis Profile Picture

Adis 253 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans