How to Add CSS that Users Can Toggle On/Off for Their Environment?
Greetings,
I am trying to let users have some choices on how their want their Decisions environment to look. For example, I currently want users to have an action that alters the theme of their forms to be one of three options: Light, Dark, and Groovy modes.
I understand how to dynamically apply CSS to forms, and I can pass-in the appropriate CSS files for each user's choice to show the forms in their selected theme. However, I am unsure how to do this for an entire Decisions environment. How would I go about doing this?
Comments
-
Hello!
There is no way to dynamically change the Decisions portal theme. However, you can add a user action to the user's landing dashboard, which will redirect the user to an identical dashboard with a different CSS applied to the page. You would be creating three separate dashboards, all of which behave the same but have a different CSS file applied.
Documentation for creating user actions for dashbaords:
https://documentation.decisions.com/docs/adding-user-actions-with-the-action-bars-component
-Gregory
