Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

dynamic choices

(1) ShareShare
ReportReport
Posted on by 448
Hi all
I need to have a dynamic choice where where the user can indicate the choice; the choice has rules.
The choices are for example:
 - NEW
 - TO SEND
 - SENT
 - TO BE CANCELLED
 - CONFIRMED
 - CANCELLATION POSTED
if the record is set to SENT (3rd option), the options NEW + TO SEND + CONFIRMED must not be selectable.
....
Is this possible?
If yes please indicate me some link where it's possible learn how to.
thanks in advance
  • Verified answer
    Tamilarasu Arunachalam Profile Picture
    558 on at
    dynamic choices
    Hi @DiePic,
              You can achieve it through JavaScript by adding or removing the options according to the another field.
     
              You can refer the below article for similar scenario
     
            If this answers your question, mark this as verified
     
    Thanks,
    Tamilarasu Arunachalam
  • DiePic Profile Picture
    448 on at
    dynamic choices
    Hi @ChrisPiasecki
    thanks for reply .... can you indicate me some link where I can learn something about "box Status Reason and Status Reason Transitions"?
    thanks in advance
  • ChrisPiasecki Profile Picture
    4 on at
    dynamic choices
    Hi @diepic,
     
    Based on your example, would it be a fair to assume that you're trying to control a status field and what states it can transition to? If so, I would suggest taking a look at the out of the box Status Reason and Status Reason Transitions that are available for every table and see if it meets your needs.
     
    --- 
    Please Mark as Answer if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Like. 
  • DiePic Profile Picture
    448 on at
    dynamic choices
     Hi @RudyZhang and thanks for reply.
    Can you indicate me some link where I can learn how to do this in javascript?
     
     
  • Suggested answer
    RudyZhang Profile Picture
    Microsoft Employee on at
    dynamic choices
    Hi,
     
    We have analyzed the information you have provided, may I know your requirement is that the entity has a multi-select field where other options cannot be selected when a specific value is selected, is this correct?

    We searched for information, there is no out-of-the-box method to meet your needs, according to my experience, you can use javascript to get the attributes of the element, when /SENT/ is selected, so that the form of other options to hide.
     
    In addition, we have found an alternative solution where you can set 5 fields to mark each option as checked or unchecked and then use Business Rules to lock the other fields.


     
     
     
    I hope my answer is helpful to you! If you have any other questions, please feel free to contact me.
     
    Best Regards,
    Rudy Zhang

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... 293,097 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,872 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans