Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Dropdown Remove option change not reflect on IO

(1) ShareShare
ReportReport
Posted on by 6
I am using dynamic CRM 365. 
For removing options from dropdown option set i am using following code 
        var tab = formContext.ui.tabs.get("tabGeneral");
 var terminationReasonField = formContext.getControl("TR");
        if (terminationReasonField) {
            terminationReasonField.removeOption(229660005);
            console.log("end runTerminationInitialise")
        }
 
It delete option from option set but changes not reflect on UI.
I added code in FormLoad event.
I also try to add some wait time using ' setTimeout' after changes but still on UI deleted option is displayed.
 
Try to open changes on Incognito mode as well, check  with clear  browser cache but no success.
 
 
 
Categories:
  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,699 Super User 2024 Season 1 on at
    Dropdown Remove option change not reflect on IO
    Add a alert also after your code. So that you will know it is loading.
  • SN-08121034-0 Profile Picture
    SN-08121034-0 6 on at
    Dropdown Remove option change not reflect on IO
    Thank you for reply, Yes I recheck I am refer to  correct option set,
    actually option set array also updated after remove one option but UI not reflected.
  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,699 Super User 2024 Season 1 on at
    Dynamic crm365 Dropdown Remove option change not reflect on IO
    Make sure you are referring correct option set values in the code.

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!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans