/
fields.htm
51 lines (49 loc) · 1.25 KB
/
fields.htm
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Booking.js customer fields example</title>
<style type="text/css">
body { background-color: #E6E6E6; max-width: 700px; margin: 0 auto; }
</style>
</head>
<body>
<div id="bookingjs"></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="../dist/booking.js"></script>
<script type="text/javascript">
TimekitBooking().init({
app_key: 'live_widget_key_yYXHsUurvCUctNYflzGDMqEJo6mol0Yo',
resources: [
'42b956f0-be11-4af3-9221-19e899fcd1fb'
],
customer_fields: {
name: {
title: 'Your name please'
},
email: {
prefilled: 'doc.brown@timekit.io'
},
comment: {
title: 'Comment',
prefilled: 'This is a comment'
},
department: {
title: 'Department',
type: 'string',
format: 'select',
enum: [
'Development',
'Design',
'Sales'
]
},
terms: {
title: 'I accept terms & conditions',
format: 'checkbox'
}
}
});
</script>
</body>
</html>