Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / How to call unbound co...
Finance forum

How to call unbound control in clicked method in D365

(0) ShareShare
ReportReport
Posted on by 30

how to assaign unbound control value in clicked method in d365.

thanks..

  • WillWU Profile Picture
    22,352 on at
    RE: How to call unbound control in clicked method in D365

    Hi Ramesh,

     

    Then right-clicked the Onclick events and copy event handler method, paste the method in your own class.

    pastedimage1569231681591v1.png

    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");

        }

    pastedimage1569231723448v2.png

    Best regards,

    Will

  • Suggested answer
    startax Profile Picture
    1,845 on at
    RE: How to call unbound control in clicked method in D365

    Hi Ramesh,

    In property of unbound control Autodeclaration = Yes. Than you can assign value.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,996 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans