Announcements
how to assaign unbound control value in clicked method in d365.
thanks..
Hi Ramesh,
Then right-clicked the Onclick events and copy event handler method, paste the method in your own class.
After that you can assign the contol value in the method.
You can refer to the following code,
[FormControlEventHandler(formControlStr(Form1, FormButtonControl1), FormControlEventType::Clicked)]
public static void FormButtonControl1_OnClicked(FormControl sender, FormControlEventArgs e)
{
FormRun element = sender.formRun();
FormStringControl EditField = element.design(0).controlName("FormStringControl1");
EditField.text("Test");
}
Best regards,
Will
Hi Ramesh,
In property of unbound control Autodeclaration = Yes. Than you can assign value.
André Arnaud de Cal...
294,261
Super User 2025 Season 1
Martin Dráb
232,996
Most Valuable Professional
nmaenpaa
101,158
Moderator