-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformtest.html
More file actions
30 lines (25 loc) · 1.37 KB
/
formtest.html
File metadata and controls
30 lines (25 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dynamic Signup Modal</title>
<script src="index.js" defer></script>
</head>
<body>
<button class="openModalBtn" data-title="Sign up for the league" data-submit-button-text="Sign Up" data-form-modal='[
{"name":"name", "label":"Full Name", "placeholder":"Enter your full name", "required":true},
{"name":"email", "label":"Email Address", "type":"email", "placeholder":"Enter your email", "required":true},
{"name":"phone", "label":"Phone Number", "type":"tel", "placeholder":"Enter your phone number", "required":false}
]' data-action-url="https://jsonplaceholder.typicode.com/posts">
Open Signup Form
</button>
<button class="openModalBtn" data-title="Join Our Newsletter" data-submit-button-text="Sign Up" data-form-modal='[
{"name":"name", "label":"Full Name", "placeholder":"Enter your full name", "required":true},
{"name":"email", "label":"Email Address", "type":"email", "placeholder":"Enter your email", "required":true},
{"name":"phone", "label":"Phone Number", "type":"tel", "placeholder":"Enter your phone number", "required":false}
]' data-action-url="'https://jsonplaceholder.typicode.com/posts">
Open Signup Form
</button>
</body>
</html>