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 :
Customer Service forum

MultiSelect field - clearOptions() NOT clearing selected options

(0) ShareShare
ReportReport
Posted on by 60

Multi-Select Option Set does not clearing selected options

if i give Xrm.Page.getAttribute(“new_testmultiselect”).setValue(null)

it gives an error 

One of the scripts for this record has caused an error. For more details, download the log file.
Error: parameter is not passed or parameter is nNull or undefined at Function.Error.create 

Categories:
I have the same question (0)
  • Suggested answer
    Ben Thompson Profile Picture
    6,350 on at

    It's worth looking at https://community.dynamics.com/crm/b/vikranthpandirihowtoseries/archive/2017/11/04/dynamics-365-v9-0-set-multi-select-option-set-values-using-jscript for how to add and remove values in a multi-select optionset.

    Note that all the examples use formcontext rather than Xrm.Page as multi-select optionsets are new functionality and Xrm.Page was deprecated...

  • Bilal079 Profile Picture
    60 on at

    Hi Ben,

    Thanks for your response,

    i have already looked this solution. but my issue is, i want to remove all selected and unselected options and add new ones. Options can be removed but the selected values still remain in the Multiselect Input, when i click on Multiselect, it shows nothing in the drop-down but after closing the drop down the previously selected values appear again there.

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi Muhammad Bilal,

    Have you considered adding and removing options from the field customisation screen?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans