Skip to main content

Notifications

Dynamics 365 general forum

Control Option Set for Phone and Tablet

Posted on by Microsoft Employee

I have an issue to display Option Set value for Phone and Tablet.

Right now, I only want to display some particular value for option set attribute.

For example I have two attributes: Handling and Status

Handling value: 'A', 'B', 'C'

Status value: 'X', 'Y', 'Z'

Then I add custom JS to display Handling = 'A' when Status = 'X'

The result is all Handling value is displayed: 'A', 'B', 'C'

Is there any way for me to make the output as I expected?

occurred in CRM v8.x (online)

ScreenHunter_5F00_448-Aug.-06-18.51.jpg

  • Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Control Option Set for Phone and Tablet

    Hi,

    would you mind to share the picture and the code?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Control Option Set for Phone and Tablet

    Hi Wei,

    I have tried these two JS, but the result came out with 'option set value not valid' with red font on the mobile.

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Control Option Set for Phone and Tablet

    Hi,

    you can try to implement the below function via JS.

     

    addOption 

    [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/controls/addoption:750:50]

    clearOptions 

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/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

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans