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 ?
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.labeloption for the field in question and simply add something like<i class="required">*</i>to the string.requiredusingfields.classNameand then use a little bit of CSS to add a:beforeor:afterpseudo element with acontent: '*'for the label.Allan
Thanks ,
have added below css to achieve
div.required >label:before {
content: "* ";
color: red;
}