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

want to Mandatory Display (Unbound) Field

(0) ShareShare
ReportReport
Posted on by 192

Hi All,

I am using D365 F&o with latest release.

As per requirement,   Any employee should not be created without position. For that we need to mandatory the "Position" at new worker (HCMWorkerNewWorker ) form.

The position in this form is a display (Unbound / Without data source) field. 

How can i mandatory this field. Also if i need to put some validation at closing time then how can i get this field value in code. 

  • Verified answer
    Parag Chapre Profile Picture
    12,254 Most Valuable Professional on at

    Hi Rahul,

    You can check the form HcmWorkerNewWorkerAction >> Button >> CreateWorkerAction >> Click >> Events

    Create OnClicked event handler and Write your business logic according to your need.

    For example :

           FormRun     fr = sender.formRun();

           FormStringControl Position = fr.design().controlName(literalStr(Position));

           if(Position.text() = ' ')

           {

               throw error("Position is madatory");

           }

  • Suggested answer
    Rahul Saklani Profile Picture
    192 on at

    Thanks Parag.

    FormStringControl Position = fr.design().controlName(literalStr(Position));   DOES it all

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

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 217

#3
Subra Profile Picture

Subra 200 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans