Skip to content

Commit 531582e

Browse files
committed
Add regex for name
1 parent e76ec4b commit 531582e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ <h1>Product Pick</h1>
1919
<!-- Field for Customer’s Name-->
2020
<div>
2121
<label for="name">Name*:</label>
22-
<input type="text" id="name" name="customer_name" required>
22+
<input type="text" id="name" name="customer_name" required pattern=".*\S.*\S.*">
23+
<i>(at least 2 characters)</i>
2324
</div>
2425

2526
<!-- Field for Customer’s Email-->

0 commit comments

Comments
 (0)