How to apply CSS to a form at runtime
Hey! I am running an instance of Decisions v9.3. Is there a way to switch a CSS stylesheet or apply a selector to CSS at runtime to a form? I want to change the form appearance based on what the user selects.
Thanks!
Comments
-
Hello, thanks for reaching out to us through the forum!
Yes, there is. Allow Runtime CSS is a property in the form itself. After opening the form, click on the whitespace and search for CSS or STYLE. Then, select Allow Runtime CSS File Name and give it a data name. Save the form. Following that, the CSS sheets you'd like to use have to be named in the form input in the flow.
Allow Runtime CSS screenshot in form properties.
Form Input Example from the flow
With this, you do have to choose all the stylesheets to apply to the form.
The document ID can be found by going to Settings => Designers => CSS and
then right-clicking on the sheet and select 'Get Document ID'.
Regards,
Andrew | Decisions Support
Howdy, Stranger!
Categories
- 4.2K All Categories
- 68 General
- 11 Training
- 203 Installation / Setup
- 1.1K Flows
- 108 Rules
- 262 Administration
- 212 Portal
- 494 General Q & A
- 698 Forms
- 334 Reports
- 3 Designer Extensions
- 47 Example Flows
- 53 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 180 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 80 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 92 Lunch And Learn Questions