must()
Enforce complex input criteria.
Setup
<!-- Form Container -->
<div sf="myForm">
<form>
<!-- Password Input with Must Validation -->
<div sf-step="step1">
<label for="password">Enter your password:</label>
<input type="password" name="password" id="password" sf-validation="must(1,1,1,1)" required>
<div class="text-style-error">Password must contain at least 1 number, 1 lowercase letter, 1 uppercase letter, and 1 symbol.</div>
<button sf-goto="next">Next</button>
</div>
</form>
</div>
Usage Examples
Attribute Configuration
Last updated