Skip to main content

Notifications

Announcements

No record found.

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 Microsoft Employee

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 ?

  • Verified answer
    meelamri Profile Picture
    13,198 on at
    RE: hide optionset value on a subgrid

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

  • Suggested answer
    ChangeFrenzoId Profile Picture
    465 on at
    RE: hide optionset value on a subgrid

    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

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

Dynamics 365 Community Update – Sep 16th

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

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans