Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

How to limits options from Base Enums ?

(1) ShareShare
ReportReport
Posted on by 144
Hi guys,
 
In my company, the Purchase Orders are from external integration, however there are one exception that user may permitted to create new PO manually, as long as it is for return only. So, when creating New PO, and dialog box selection of Purchase Type, I want user can only select Returned Order. Except of course if your are an Admin, which the selection will be as standard.
 
May I get an advice, how we can do it ?
 
Thanks in advance
  • Waed Ayyad Profile Picture
    Waed Ayyad 7,608 Super User 2025 Season 1 on at
    How to limits options from Base Enums ?
    Hi Community member,
     
    Is your issue resolved? If yes, please verify the correct answers.
     
     
    Thanks,
    Waed Ayyad
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,618 Moderator on at
    How to limits options from Base Enums ?
    One way is as Martin suggested to disable the control and give default value as return type only.
     
    Second way is if user selects other than return type throw validation error.
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 7,608 Super User 2025 Season 1 on at
    How to limits options from Base Enums ?
    Hi Community member,
     
    Try this solution by deleting unwanted values on the enter or run method of the form:
     
     
    Thanks,
    Waed Ayyad
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
     
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 231,493 Most Valuable Professional on at
    How to limits options from Base Enums ?
    If users can't select any other value, then there is no point giving them the option to choose a value. Hide the control or make it read-only and initialize the value in code.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans