We have a very long form with several sections. To make it easier to read once the form is in the repository, is there way to change the individual formatting (color especially) of the section and collection headers? In other words, header for section A red (text or background), the header for collection 1 blue, the header for section B green, etc. A simple color indicator would make looking through the thumbnails much easier.
Question
Question
Change Formatting of Individual Section/Collection Headers
Replies
If you go through and add different classes to each section header, you can change their background colours.
For example, let's say I want a red, blue, and green:
.section-header-red .cf-section-header { background-color: red; } .section-header-green .cf-section-header { background-color: lime; } .section-header-blue .cf-section-header { background-color: #00aaff; }
Then you apply whichever colour's class to the section header (in this example, red = section-header-red, green = section-header-green, and blue = section-header-blue):
You can also add "color" to the CSS to change the text colour:
.section-header-red .cf-section-header { background-color: red; color: white; }
These will show up on the form when the user is filling it out and also should when it's saved to the repository.
Thanks, Jim. This helps a lot. Can the same thing be done on Collection headers?
The above method will colour the table and collection headers the same as their parent section's colour. To change them, you can use the following CSS, with the class names "table-header-red" and "collection-header-blue":
.table-header-red.cf-table-block .cf-section-header { background-color: darkred; color: white; } .collection-header-blue.cf-collection-block .cf-section-header { background-color: azure; }
Perfect! Thank you.