Field labels in RED color
Hi,
Just wanted to find out if it was possible to make the labels of the fields in RED color for all required fields in a table. eg: In the Sales Order table, I want the 'Sale Order Date' label to be in RED color to signify that it is a required field on the form.
Thanks,
Vermaji
--------------------------------
50 replies
-
Hi, you can't change the color of the field's label, but you can change its 'Required' option to "Yes." This way, the border turns red when the field is empty (see the screenshot).
-
I have not tried this myself but perhaps one could set the required field label as hidden and then add a formula field where the label would be which can be coloured red.
-
You can add a Formula field with this CSS in it to change the label and background color.
html(" <style> .component.editor.editor-string.error { background-color: lightgray; } .component.editor.editor-string.error label { color: red; } </style> ")
I have also attached a simple demonstration database.
-
Here is a list of classes for the different field types
Text .component.editor.editor-string
Text(multiline) .component.editor.editor-string
Rich text .component.editor.editor-html
Number .component.editor.editor-number
Yes/No .component.editor.editor-boolean
Choice .component.editor.editor-choice
Multiple choice .component.editor.editor-multi
Date .component.editor.editor-date
Time .component.editor.editor-time
Appointment .component.editor.editor-appointment
Color .component.editor.editor-color
Choice (dynamic) .component.editor.editor-dchoice
Multiple choice (dynamic) .component.editor.editor-dmulti
Content aside
- Status Answered
-
1
Likes
- 3 mths agoLast active
- 50Replies
- 292Views
-
6
Following