add a mark to label to mark require input field
add a mark to label to mark require input field
How can mark a field on Editor to require input field. a red color or * mark.
This discussion has been closed.
How can mark a field on Editor to require input field. a red color or * mark.
Answers
If you use a validator and the field is a required field your field is marked in red automatically if you are not entering anything.
The validators in PHP:
I'm not using PHP, i using initSubmit and add field.error to show error message.
so only message is red color not on field entry red as image.
You can also use
field().message(), it may be less aggressive thanfield().error().Colin
I might not fully understand this but using field().error() has the exact same effect than using a server side validator.
I use the validator with "dependent" in this code example:
And this is what it looks like: