Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to keep optionset dropdown closed when setting default value using javasctipt in crm365

(0) ShareShare
ReportReport
Posted on by 132

Hello, 

I am setting option set value on change of another field using javasctipt. But while setting option set value, sometimes instead of closing option set, it selects the value which is being set using Javascript and keep expanded. 

Can anyone plz help me how can I close option set, I tried by setting focus on another field but no luck.

Thanks. 

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: How to keep optionset dropdown closed when setting default value using javasctipt in crm365

    Hi Nilesh,

    This is because of form unsaved changes , Try  to save the forms using javascript after set the optionset value.

    You can also try  with business rules.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans