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 ,
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 ?
@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.
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