How to add red star (*) marker after or before the field label for the required field ?
How to add red star (*) marker after or before the field label for the required field ?
NickZhang
Posts: 11Questions: 7Answers: 0
How to add red star (*) marker after or before the field label for the required field ?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Two options:
fields.label
option for the field in question and simply add something like<i class="required">*</i>
to the string.required
usingfields.className
and then use a little bit of CSS to add a:before
or:after
pseudo element with acontent: '*'
for the label.Allan
Thanks ,
have added below css to achieve
div.required >label:before {
content: "* ";
color: red;
}