Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Is there an out of OOTB functionality in D365 portal to change theme on button click by user?

Posted on by

We are trying to implement a fucntionality wherein we need to update UI elements on portal based on division selected by the user. Can we achieve this OOTB

Thanks,

Harsh

*This post is locked for comments

  • Suggested answer
    ThomasN Profile Picture
    ThomasN 3,190 on at
    RE: Is there an out of OOTB functionality in D365 portal to change theme on button click by user?

    Sorry, but without reloading the page and changing the template/page that loads then using jQuery is the only way. You may already be doing this, but you can put that jQuery on the page or template so at least managing it is simple enough. Remember to use comments to keep some version control of your script's since your pasting the script into a text box.

    Please let us know if you do find an alternative solution.

  • harsh ranjan Profile Picture
    harsh ranjan on at
    RE: Is there an out of OOTB functionality in D365 portal to change theme on button click by user?

    Hi Tom,

    Thanks for the quick reply. We need to dynamically change color of some elements based on division selection. Once the page is loaded, we wont reload it on button click, just change css for some elements, can we achieve this using multiple templates? As a work around, we are using jquery to achieve this and exploring other approaches as well.

    Regards

    Harsh

  • Suggested answer
    ThomasN Profile Picture
    ThomasN 3,190 on at
    RE: Is there an out of OOTB functionality in D365 portal to change theme on button click by user?

    Hi Harsh, thanks for reaching out.

    Without getting into discovery here, below is one solution. Please provide more requirements if this doesn't make sense.

    In Portal themes are set by page or page templates. Your ask is based on button click for division. If I had several pages under each division I would create a division template and apply that to all those child division pages. The template can apply CSS for you.

    I am assuming you do not want to change the whole site after they have clicked division. That would feel awkward to me if a site completely changed theme. Look of a site is tied to user trust, changing colors can decrease engagement. Keep it simple!

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans