web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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 195
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
I have the same question (0)
  • Waed Ayyad Profile Picture
    9,047 Super User 2025 Season 2 on at
    Hi Community member,
     
    Is your issue resolved? If yes, please verify the correct answers.
     
     
    Thanks,
    Waed Ayyad
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    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
    9,047 Super User 2025 Season 2 on at
    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
    238,320 Most Valuable Professional on at
    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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 288 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans