Change Choice / OptionSet value’s text/label using JavaScript    – Dataverse / Dynamics 365


In Dynamics 365, you can dynamically change the labels of option set fields based on specific conditions. For example, you can update the label of the "Priority" field option from "High" to "Critical" when a case is marked as escalated. The provided code can be used to achieve this functionality. It registers the code on the OnLoad for Form and OnChange of the Is Escalated field. When the form is opened, the Priority's value will change to Critical if Is Escalated is set to Yes. However, note that the header still shows the old value, and there is no supported way to change the label in the header.


Article 3m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time