Add Custom CSS to a Screen
Add custom CSS to controls in your Screen.
Add Custom CSS to a Screen
Use the Custom CSS mode to add custom CSS styles to a Screen. ProcessMaker Platform supports standard Cascading Style Sheet language (CSS) syntax.
Permissions Required
Your user account or group membership must have the following permissions to add custom CSS to a Screen unless your user account has the Make this user a Super Admin setting selected:
Screens: Edit Screens
Screens: View Screens
See the Screens permissions or ask your Administrator for assistance.
Visibility Rules Override Custom CSS
If a Screen control affected by a visibility rule is hidden by default from custom CSS, the visibility rule overrides the custom CSS design. For example, if custom CSS is designed to hide a Screen control by default when that control's visibility rule dictates that it be visible, the visibility rule overrides the custom CSS to display that control. As a best practice, use visibility rules instead of custom CSS to hide a control by default.
Need to Learn CSS?
Start with W3School's free CSS tutorial.
Follow these steps to add custom CSS to a Screen:
Open the Screen in which to add custom CSS. The Screen is in Design mode.
Enter your custom CSS syntax.
Optionally, reference the CSS Selector Name setting value for specific Screen controls to indicate that CSS styling applies to those controls. Enter the value to represent this control in custom CSS syntax when in Custom CSS mode. The reference is case sensitive in the CSS syntax. See Apply CSS to Specific Screen Controls. Example:
[selector='Submit Form']
.Address any syntax errors or changes as necessary, then click Save.
Click the Preview button to view your CSS syntax for your Screen in Preview mode. Custom CSS does not display in Design mode.
Click the Design button to return to Design mode, and then repeat Steps 2 through 6 as necessary.
Customize CSS Styling Using Wildcards
Use standard Cascading Style Sheet language (CSS) syntax as well as wildcards to customize CSS styles for ProcessMaker Screen controls.
Apply CSS to Specific ProcessMaker Screen Controls
Use the following syntax to apply CSS styling to a specific control in this Screen by referencing its CSS Selector Name setting value. Use single quotes ('
) around the control reference. The reference is case sensitive in the CSS syntax. As a best practice, use the same CSS Selector Name setting value on different controls of the same type to apply the same custom CSS style to all those controls.
[selector='CSS Selector Name Setting that is case sensitive']
Example for a Screen control with the CSS Selector Name setting value of Submit Form
:
Apply CSS to All Pages in a Screen
Use div.page
to apply CSS styling to all pages in a Screen.
Example:
Apply CSS to Make Form-Type Screens Read Only
A common use case is to make existing Form-type Screen controls read-only by using the Read Only setting for controls that have this setting. Instead, accomplish this with the Input CSS class.
Also use a Nested Screen control in combination of a Multicolumn/Table control to reference all inputs inside of the Multicolumn/Table control, which is multi
in the example below.
Related Topics
What is Screen Builder?Screen TypesScreen Builder ModesValidate Your ScreenControl DescriptionsAdd, Delete or Rename a PagePreview a Screen for Desktop and Mobile DevicesManage Calculated PropertiesManage WatchersUndo and Redo Changes in Your ScreenPublish Your ScreenScreen Design Best PracticesLast updated