web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

hide optionset value on a subgrid

(1) ShareShare
ReportReport
Posted on by 6,120

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 ?

I have the same question (0)
  • Suggested answer
    ChangeFrenzoId Profile Picture
    on at

    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

  • Verified answer
    meelamri Profile Picture
    User Group Leader on at

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

Helpful resources

News and Announcements

[Smoke test 2510.1]

Quick Links

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans