-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.js
149 lines (148 loc) · 2.8 KB
/
config.js
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
import { instructions } from "./constants";
export const formConfig = [
{
type: "information",
label: "",
name: "info",
text: instructions,
buttonText: "Apply here",
options: {
attrs: {},
},
validation: {
required: false,
},
},
{
type: "information",
label: "",
name: "info",
text: `...being a real-life superhero is not about physical strength, but about <strong>mental strength</strong>.`,
buttonText: "Cool, let's do this!",
options: {
attrs: {},
},
validation: {
required: false,
},
},
{
type: "radio",
label: "Have you identified your superpowers?",
name: "hasSuperpower",
// buttonText: "What's next",
options: {
choices: ["Yes", "No", "Maybe"],
},
validation: {
required: true,
},
},
{
type: "checkbox",
label: "Select applicable superpowers.",
name: "superpowers",
buttonText: "Okay, cool!",
options: {
choices: [
"Creativity",
"Analytical",
"Logical",
"Strategic",
"Problem solver",
],
},
validation: {
required: true,
minLength: 2,
},
},
{
type: "textarea",
label: "Tell us a little bit about your kryptonite.",
name: "weakness",
buttonText: "Next...",
options: {
attrs: {
placeholder: "Write here...",
},
},
validation: {
required: false,
},
},
{
type: "text",
label: "Describe yourself in one word!",
name: "oneWord",
buttonText: "Next...",
options: {
attrs: {
placeholder: "One word to describe yourself...",
},
},
validation: {
required: true,
minLength: 5,
},
},
{
type: "text",
label: "Have you thought of your superhero name?",
name: "superheroName",
buttonText: "What do we call you?",
options: {
attrs: {
placeholder: "Superhero name",
},
},
validation: {
required: false,
minLength: 5,
},
},
{
type: "information",
label: "",
name: "info",
text: `If you are the right fit for being a superhero, tell us how can we reach you?`,
buttonText: "Sure...",
options: {
attrs: {},
},
validation: {
required: false,
},
},
{
type: "text",
label: "Your Email",
name: "email",
// buttonText: "Let's do this!",
options: {
attrs: {
placeholder: "Your Email",
},
},
validation: {
required: true,
email: true,
},
},
{
type: "text",
label: "Your phone Number",
name: "phone",
buttonText: "Done!",
options: {
attrs: {
placeholder: "Your Contact",
},
},
validation: {
required: true,
numeric: true,
minLength: 10,
},
},
];