-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.js
More file actions
52 lines (51 loc) · 1.08 KB
/
config.js
File metadata and controls
52 lines (51 loc) · 1.08 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { Validators } from 'formify-react'
export const formConstants = [
{
field: 'email',
type: 'email',
validators: [
{ check: Validators.required, message: 'Email is mandatory' },
{ check: Validators.email, message: 'Email entered is not valid' }
],
required: true,
title: 'Email',
placeholder: 'Enter your email',
styleClass: 'col-sm-6',
extraProps: {
maxLength: 30
}
},
{
field: 'budget',
type: 'dropdown',
validators: [],
required: false,
title: 'Your Budget',
styleClass: 'col-sm-6'
},
{
field: 'animals',
type: 'multi-dropdown',
validators: [],
required: false,
title: 'Pick your favorite animals',
styleClass: 'col-sm-12'
},
{
field: 'message',
type: 'textarea',
validators: [],
required: false,
title: 'Message',
placeholder: 'Enter your message',
styleClass: 'col-sm-12'
},
{
field: 'notify',
type: 'checkbox',
validators: [],
required: false,
title: 'Subscribe to our mailing list',
styleClass: 'col-sm-12'
}
]