Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to hide Case Type option set values only for portal page

Posted on by 465

Hi All,

I am using PowerApps with D365 Online

I do have Case Type option set type field with 5 items in it.

How can I hide only 3 items from the portal page only

I want show all 5 items in the CRM(backend)

Thanks in Adavance.

Regards,

Babu

  • Narendra Sunkara Profile Picture
    Narendra Sunkara 465 on at
    RE: How to hide Case Type option set values only for portal page

    Thanks Leo,

    That worked for me.

    Regards

    Babu

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: How to hide Case Type option set values only for portal page

    Hi partner,

    You should go to Portals->Entity Form->Additional Settings->Custom JavaScript.

    For example in case type there are 3 default options.

    pastedimage1590043720633v1.png

    Now I want to hide "Request" option in case edit form in portal, I should add the following code under form load function.

    $("#casetypecode option[value='3']").remove();
    pastedimage1590044141373v3.png
    And then it worked.
    pastedimage1590044121328v2.png
    Remember to add the code to all forms you need, like create form and edit form.
    Best Regards,
    Leo

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans