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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Restrict Subject Tree when Creating a New Case on Customer Self Service Portal

(0) ShareShare
ReportReport
Posted on by 172

Hello there,

I need your help in order to clarify something regarding the Customer Self Service Portal we have set up in our CRM.

Turns out that we manage two commecial brands for our customers and the services that we offer for each brand are different.

What we need is to be able to filter those services depending on the commercial brand selected by the user  when creating a new case in the portal.

Is it possible to do that? if not, any ideas or suggestions how could we accomplish that?

Thank you.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nicholas Hayduk Profile Picture
    2,863 on at

    Hi Jeudy,

    Your best bet would probably be some custom JavaScript as part of the Entity Form that removes the undesirable options from the subject dropdown.

    How do you determine what brand you want to display?  Is it a field on the case that they are selection, or is it part of their profile?  Either way, using jQuery, and perhaps some Liquid, should do the trick.

    Nick

  • Jeudy Molina Profile Picture
    172 on at

    Hi Nicholas,

    Thank you for your reply.

    Yes, it is an option that the users must select before submiting the case.

  • Suggested answer
    Nicholas Hayduk Profile Picture
    2,863 on at

    If it's one of the fields on the form, the jQuery below should be a good start.

    $(document).ready(function() {

      $("#custom_brand").change(function() {

    $('#subjectid option').each(function() {

    //determine if the current value of brand applies, and if not, hide using one of the techniques described at stackoverflow.com/.../how-can-i-hide-select-options-with-javascript-cross-browser

    });

      });

    });

  • Jeudy Molina Profile Picture
    172 on at

    Excellent!!! we will give it a try and will get back to you with the outcome.

    Thank you for your help friend.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans