Sept. 22, 2022, 8:10 p.m. | Christian Heilmann

DEV Community dev.to

In HTML5, you can provide a required attribute to ensure a certain field has been filled out before a form can be sent off.



<input id="tac" required name="tac" type="checkbox">
<label for="tac">I have read the terms and conditions</label>


You can go even further and define a pattern that the value of the field needs to comply with before it can be sent off. For example, the following only allows entries that are either upper or lowercase a to z letters.



<label …

forms javascript security

SOC 2 Manager, Audit and Certification

@ Deloitte | US and CA Multiple Locations

Information Security Engineers

@ D. E. Shaw Research | New York City

Cloud Security Engineer

@ Pacific Gas and Electric Company | Oakland, CA, US, 94612

Penetration Tester (Level 2)

@ Verve Group | Pune, Mahārāshtra, India

Senior Security Operations Engineer (Azure)

@ Jamf | US Remote

(Junior) Cyber Security Consultant IAM (m/w/d)

@ Atos | Berlin, DE, D-13353