Objective:
Draw attention to required fields by applying CSS to your Form Template that creates a red border around questions that are required.
Before you get started:
These articles might be helpful before you read this one:
Use the following snippet of CSS code to highlight required fields in red to help end users understand which fields are mandatory as they are filling out a form.
.slds-scope .form-section .control-group [required]{
border-color: red;
border-width: 2px;
}
#formContent h1.formName,
#formContent h3.form-number {
display: none;
}
Comments
0 comments
Please sign in to leave a comment.