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

  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 543 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 415 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 188

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans