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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Option set selecting wrong value

(0) ShareShare
ReportReport
Posted on by 57

What would be the reason for the value I select in my option set to change to a different value within the same option set immediately after making my selection. In other words my option set has three values (red, blue, and green) I select red and immediately upon making this select the option set will choose blue instead.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi partner,

    It seems that there are business rules or Javascript running on this form.

    So check to see if there are business rules or Javascript, and if so, disable them.

    business rules: docs.microsoft.com/.../create-business-rules-recommendations-apply-logic-form

    Javascript: neilparkhurst.com/.../

    Just check the OnChange event.

  • Verified answer
    Saad Kabarousse Profile Picture
    734 on at

    Hi,

    There must be a javascript or business rule applied on your form. You can check in these places:

    pastedimage1564559384782v1.png

    pastedimage1564559436767v2.png

    pastedimage1564559515666v3.png

  • Inogic Profile Picture
    703 on at

    Hi,

    There can be two possible reasons for what you are facing:  

    1. You may have a business rule for changing the value of option set.

     To check if you have a business rule, follow these steps -

    • Open form editor of that Entity and click on Business Rules. In Business Rules Explorer you can see your business rule. For Example, here “Set Color” is my business rule name.

    1option-set.jpg

    2. May be on change of option set field, there might be a custom JavaScript code to set the option set value. 

    To see if you have JavaScript library in “On Change” event of option set field follow below steps -

    • Open form editor of that Entity and choose your field. Click on Change Properties for this field. For instance, my field is “Choose Color” as can be seen below.

    2option-set.jpg

    • Field Properties window will open. Here, select “Events” tab. In this tab, check whether there is any custom JavaScript library in the box as highlighted below.

    3option-set.jpg

    Hope this helps.

    Please mark as verified if the answer is helpful.

    Thanks!

  • ElderJoe1 Profile Picture
    57 on at

    Thanks for the replies. you all were correct, the problem was in the JS file associated on the form. I found the Option set and compared the values to the option used on the form and found they did not match at all. I corrected this and did some testing, problem resolved.

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

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans