Notifications
Announcements
Hi ,I have a form, within which there is a subgrid.on subgrid there is an optionset value dropdow and I want to hide few options from it. May I know how I can achieve this using Javascript or any other option ?
Hi!
There is no way to HIDE option from the OptionSet.But what you can do is you can use removeOption xrm function to temporary remove(hide) the option from the OptionSet:https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/controls/removeoption
After remove(hide), in case you want to show that option again, you can use addOption xrm function:https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/controls/addoption
In case you interested in clearing(hiding) all options from an OptionSet:https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/controls/clearoptions
@Piyush, clearOptions(), removeOption() and addOption() methods are not available on editable grids, please check in your environment. community.dynamics.com/.../limitation-of-editable-grid-option-set-add-remove-options-not-working
@RupeshGonte, I'm afraid we can't implement this scenario at the moment.
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.
We are honored to recognize Mansi Soni as our August 2025 Community…
A new season of Super Users has arrived, and we are so grateful for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.