Form Validation
Tooltips
If your form layout allows it, you can swap the SP .valid|invalid-feedback classes for.valid|invalid-tooltip classes to display validation feedback in a styled tooltip. Ensure the parent has position: relative for tooltip positioning.
Custom Styles
Browser Defaults
Not interested in custom validation feedback messages or writing JavaScript to change form behaviors? All good, you can use the browser defaults. Try submitting the form below. Depending on your browser and OS, you’ll see a slightly different style of feedback. While these feedback styles cannot be styled with CSS, you can still customize the feedback text through JavaScript.
Supported Elements
Not interested in custom validation feedback messages or writing JavaScript to change form behaviors? All good, you can use the browser defaults. Try submitting the form below. Depending on your browser and OS, you’ll see a slightly different style of feedback. While these feedback styles cannot be styled with CSS, you can still customize the feedback text through JavaScript.