Custom CSS
Advanced Forms' form builder gives you all the tools to design the perfect form. If you have a unique customization requirement for your online form or PDF template that is not available in the form builder, you can add your styling code to the custom CSS section of the form builder.
-
Add custom CSS to your form.
-
Open your form in Edit mode.
-
On the left-hand side of the Form Builder, select the Styling & Themes tab.
-
Click Custom CSS to expand that section.
-
Enter or paste the code into the text box.
-
Save and view your form.
Commonly used CSS
The following table lists commonly used CSS examples to copy and paste into your form’s custom CSS.
CSS code snippets that contain fieldname must be updated to reference the short-code for the relevant field within your form; otherwise, the CSS will not be applied.
|
CSS for online forms
Common requirements | CSS code |
---|---|
Increase font size |
|
Increase font size inside specific input fields |
|
Make the signature field width the entire length of the form. |
|
Make the Submit button full width of the form. |
|
Force field names, button names, and responses to be capitalized |
|
Force input text response only to be capitalized |
|
Narrow form |
|
Change mandatory asterisk color (replace with your preferred color) |
|
Customise further instruction text color (replace with your preferred color) |
|
Change text color on drop-down list field to match text type fields |
|
Make the background of a read-only field more transparent so it looks like a label instead of a read-only text field |
|
Change text direction for RTL languages |
|
Disable copy URL option for Save and Complete later |
|
CSS for PDF templates
Common requirements | CSS code | ||
---|---|---|---|
Change font size of response text on PDF |
|
||
Adjusts specific field widths on PDF |
|
||
Adjust margins on PDF |
|
||
Hide a specific field on PDF |
|
||
Hide a field inside a field table on PDF |
|
||
Show ALL hidden calculation fields on PDF only |
|
||
Show a specific calculation field on PDF only |
|
||
Hide specific fields on the form but show on PDF only |
|
||
Show a specific hidden reference field on PDF only |
|
||
Hide a heading for a specific field on PDF |
|
||
Hide all heading 1 (H1) fields on PDF |
|
||
Hide ALL rich text (formatted) fields on PDF |
|
||
Hide further instructions on PDF |
|
||
Darken text for input fields on PDF |
|
CSS for mobile
Common requirements | CSS code |
---|---|
Fit lengthy questions into one line for choice matrix fields |
|
Remove page background on mobile |
|
Adjust field widths on normal screens |
|
Enable scrolling on the Long Answer field on mobile |
|
Prevent formatted text table from cutting off on mobile screen |
|
Adjust field size for mobile |
|