Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

dynamic choices

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
    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
    DiePic 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
    ChrisPiasecki 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
    DiePic 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
    RudyZhang 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans