I am trying to have all forms stored in pure black and white. I change all the font colors to #000000. However, when it stores it reverts back to the default color of #555555. I have attempted creating a custom theme numerous times and it still doesn't keep the #000000 in the field body text. How can I change the font color to pure black and have it stay that way?
Question
Question
Answer
You can add ".cf-field span" after ".cf-field div" for your first CSS.
Replies
The issue that you can't change the text color to #000000 from Themes page is a bug for Forms, we will address it for next version. As a workaround, you can use following custom CSS to change the text color:
.cf-formwrap label,.cf-formwrap select,.cf-formwrap input,.cf-formwrap textarea,.cf-formwrap h1,.cf-field div{ color:#000000 !important;}
This worked for all the fields except the date field. What is the css class is the date field?
Do you mean the input for the date field or the calendar? The input should be covered by " cf-formwrap input" this style. Can you provide the screenshot for what is not work for you?
The Date field was created using the Date field option within Layout. FYI, I am running Forms 10.1.
This is the read-only date field which use today as default value, you can add following CSS :
.date-submission{ color:#000000 !important;}
Xiuhong, I copied the css above exactly how you have it and it still doesn't work.
This is how it is storing in Laserfiche: (Everything is black expect the date)
This is the CSS I have:
Do you have any other ideas? I appreciate all your help.
You can add ".cf-field span" after ".cf-field div" for your first CSS.
That did it! Thank you Xiuhong!
Hi Vanessa,
It sounds like you might be running into a variant of this thread. When forms are stored into the repository, all input, textarea, etc elements are converted to div elements, so if custom CSS rules use, say, the input element type in the selector, they will no longer find the element in the version which is saved to the repository. You can just include a parallel selector in the rule which references div instead of input, for example.
Hope this helps!
Hi,
Forms 10.2 Update 1 has been released and this problem is fixed in this update.
You can get the patch for this at https://support.laserfiche.com/kb/1013834/list-of-changes-for-laserfiche-forms-10-2-update-1-
Thanks.