web
You’re offline. This is a read only version of the page.
close
Skip to main content
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. 

I have the same question (0)
  • Verified answer
    Parag Chapre Profile Picture
    12,254 Most Valuable Professional on at
    RE: want to Mandatory Display (Unbound) Field

    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
    RE: want to Mandatory Display (Unbound) Field

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 701 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 588 Most Valuable Professional

#3
Sumit Singh Profile Picture

Sumit Singh 544

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans