bhl-forms 0.0.11 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bhl-forms.es.js +6 -5
- package/dist/bhl-forms.iife.js +3 -3
- package/dist/bhl-forms.umd.js +3 -3
- package/dist/forms/childAndFamily.es.js +38 -29
- package/dist/forms/childAndFamily.iife.js +38 -29
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/testForm.es.js +11 -9
- package/dist/forms/testForm.iife.js +11 -9
- package/dist/forms/testForm.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -12,23 +12,25 @@ const radio = (updates) => {
|
|
|
12
12
|
required: 'Field is required',
|
|
13
13
|
},
|
|
14
14
|
optionsClass: 'pt-3 pl-1',
|
|
15
|
+
legendClass: 'required'
|
|
15
16
|
}, updates)
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
const sbsRadio = (updates) => {
|
|
19
|
-
updates.legendClass = 'legend-left';
|
|
20
|
+
updates.legendClass = 'legend-left required';
|
|
20
21
|
updates.fieldsetClass = '$reset side-by-side';
|
|
21
22
|
updates.optionsClass = 'pl-1';
|
|
22
|
-
updates.innerClass = 'center
|
|
23
|
+
updates.innerClass = 'flex items-center';
|
|
24
|
+
updates.wrapperClass = 'mb-3';
|
|
23
25
|
return radio(updates)
|
|
24
26
|
};
|
|
25
27
|
|
|
26
28
|
const sbsYesNoRadio = (updates) => {
|
|
27
29
|
updates.options = ['Yes', 'No'];
|
|
28
|
-
updates.legendClass = 'legend-left';
|
|
29
|
-
updates.fieldsetClass = '$reset side-by-side';
|
|
30
|
-
updates.optionsClass = 'pl-1 side-by-side center
|
|
31
|
-
updates.innerClass = 'center
|
|
30
|
+
updates.legendClass = 'legend-left required';
|
|
31
|
+
updates.fieldsetClass = '$reset side-by-side items-center';
|
|
32
|
+
updates.optionsClass = 'pl-1 side-by-side items-center';
|
|
33
|
+
updates.innerClass = 'flex items-center';
|
|
32
34
|
return radio(updates)
|
|
33
35
|
};
|
|
34
36
|
|
|
@@ -41,12 +43,13 @@ const select = (updates) => {
|
|
|
41
43
|
required: 'Field is required',
|
|
42
44
|
},
|
|
43
45
|
inputClass: 'bg-white',
|
|
46
|
+
labelClass: 'required'
|
|
44
47
|
}, updates)
|
|
45
48
|
};
|
|
46
49
|
|
|
47
50
|
const sbsSelect = (updates) => {
|
|
48
|
-
updates.labelClass = '
|
|
49
|
-
updates.wrapperClass = 'side-by-side';
|
|
51
|
+
updates.labelClass = 'required';
|
|
52
|
+
updates.wrapperClass = 'side-by-side items-center';
|
|
50
53
|
updates.innerClass = 'select-height-content';
|
|
51
54
|
return select(updates)
|
|
52
55
|
};
|
|
@@ -58,17 +61,18 @@ const text = (updates) => {
|
|
|
58
61
|
validationMessages: {
|
|
59
62
|
required: 'Field is required',
|
|
60
63
|
},
|
|
64
|
+
labelClass: 'required'
|
|
61
65
|
}, updates)
|
|
62
66
|
};
|
|
63
67
|
|
|
64
68
|
const sbsText = (updates) => {
|
|
65
|
-
updates.labelClass = '
|
|
66
|
-
updates.wrapperClass = 'side-by-side';
|
|
69
|
+
updates.labelClass = 'required';
|
|
70
|
+
updates.wrapperClass = 'side-by-side items-center';
|
|
67
71
|
return text(updates)
|
|
68
72
|
};
|
|
69
73
|
|
|
70
74
|
const childAndFamilyTOLP = () => sbsRadio({
|
|
71
|
-
label: '
|
|
75
|
+
label: 'Type of Help Needed:',
|
|
72
76
|
name: 'Type_Of_Legal_Problem',
|
|
73
77
|
id: 'Type_Of_Legal_Problem',
|
|
74
78
|
options: [
|
|
@@ -82,7 +86,7 @@ const childAndFamilyTOLP = () => sbsRadio({
|
|
|
82
86
|
});
|
|
83
87
|
|
|
84
88
|
const childHome = () => sbsSelect({
|
|
85
|
-
label: 'With Whom Do the Children Currently Live?
|
|
89
|
+
label: 'With Whom Do the Children Currently Live?',
|
|
86
90
|
name: 'Child_Home',
|
|
87
91
|
options: [
|
|
88
92
|
'Mother',
|
|
@@ -93,7 +97,7 @@ const childHome = () => sbsSelect({
|
|
|
93
97
|
});
|
|
94
98
|
|
|
95
99
|
const childPrimaryCaregiver = () => sbsSelect({
|
|
96
|
-
label: 'Who is the Primary Caregiver?
|
|
100
|
+
label: 'Who is the Primary Caregiver?',
|
|
97
101
|
name: 'Child_Primary_Caregiver',
|
|
98
102
|
options: [
|
|
99
103
|
'Mother',
|
|
@@ -103,7 +107,7 @@ const childPrimaryCaregiver = () => sbsSelect({
|
|
|
103
107
|
});
|
|
104
108
|
|
|
105
109
|
const childRelationship = () => sbsSelect({
|
|
106
|
-
label: 'Your Relationship to Child(ren):
|
|
110
|
+
label: 'Your Relationship to Child(ren):',
|
|
107
111
|
name: 'Child_Relationship',
|
|
108
112
|
options: [
|
|
109
113
|
'Father',
|
|
@@ -116,19 +120,20 @@ const childRelationship = () => sbsSelect({
|
|
|
116
120
|
|
|
117
121
|
const comments$1 = () => ({
|
|
118
122
|
$formkit: 'textarea',
|
|
119
|
-
label: 'Please provide a brief description of your situation
|
|
123
|
+
label: 'Please provide a brief description of your situation:',
|
|
120
124
|
name: 'Comments',
|
|
121
125
|
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
|
|
122
126
|
rows: 1,
|
|
123
127
|
validation: 'required',
|
|
124
128
|
maxlength: 1000,
|
|
129
|
+
labelClass: 'required',
|
|
125
130
|
validationMessages: {
|
|
126
131
|
required: 'Description is required',
|
|
127
132
|
},
|
|
128
133
|
});
|
|
129
134
|
|
|
130
135
|
const degreeOfInterest = () => sbsSelect({
|
|
131
|
-
label: 'How Likely Are You to Pay if Your Issue Could be Resolved?
|
|
136
|
+
label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
|
|
132
137
|
name: 'Degree_Of_Interest',
|
|
133
138
|
// help: 'No payment necessary to speak with lawyers.',
|
|
134
139
|
options: [
|
|
@@ -141,7 +146,7 @@ const degreeOfInterest = () => sbsSelect({
|
|
|
141
146
|
|
|
142
147
|
const firstName = () => sbsText({
|
|
143
148
|
$formkit: 'text',
|
|
144
|
-
label: 'First Name
|
|
149
|
+
label: 'First Name:',
|
|
145
150
|
name: 'First_Name',
|
|
146
151
|
validation: 'required',
|
|
147
152
|
validationMessages: {
|
|
@@ -152,7 +157,7 @@ const firstName = () => sbsText({
|
|
|
152
157
|
const email = () => sbsText({
|
|
153
158
|
$formkit: 'email',
|
|
154
159
|
name: 'Email',
|
|
155
|
-
label: 'Email Address
|
|
160
|
+
label: 'Email Address:',
|
|
156
161
|
placeholder: 'email@domain.com',
|
|
157
162
|
validation: 'required|email',
|
|
158
163
|
validationMessages: {
|
|
@@ -163,17 +168,17 @@ const email = () => sbsText({
|
|
|
163
168
|
|
|
164
169
|
const haveAttorney = () => sbsYesNoRadio({
|
|
165
170
|
name: 'Have_Attorney',
|
|
166
|
-
label: 'Are You Currently Working with An Attorney?
|
|
171
|
+
label: 'Are You Currently Working with An Attorney?',
|
|
167
172
|
});
|
|
168
173
|
|
|
169
174
|
const haveChildren = () => sbsYesNoRadio({
|
|
170
175
|
name: 'Have_Children',
|
|
171
|
-
label: 'Do You Have Children?
|
|
176
|
+
label: 'Do You Have Children?',
|
|
172
177
|
});
|
|
173
178
|
|
|
174
179
|
const lastName = () => sbsText({
|
|
175
180
|
$formkit: 'text',
|
|
176
|
-
label: 'Last Name
|
|
181
|
+
label: 'Last Name:',
|
|
177
182
|
name: 'Last_Name',
|
|
178
183
|
validation: 'required',
|
|
179
184
|
validationMessages: {
|
|
@@ -182,7 +187,7 @@ const lastName = () => sbsText({
|
|
|
182
187
|
});
|
|
183
188
|
|
|
184
189
|
const lawyerPaymentMethod = () => sbsSelect({
|
|
185
|
-
label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?
|
|
190
|
+
label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
|
|
186
191
|
name: 'Lawyer_Payment_Method',
|
|
187
192
|
help: 'No payment necessary to speak with lawyers.',
|
|
188
193
|
options: [
|
|
@@ -196,7 +201,7 @@ const lawyerPaymentMethod = () => sbsSelect({
|
|
|
196
201
|
});
|
|
197
202
|
|
|
198
203
|
const maritalStatus = () => sbsSelect({
|
|
199
|
-
label: 'Marital Status
|
|
204
|
+
label: 'Marital Status:',
|
|
200
205
|
name: 'Marital_Status',
|
|
201
206
|
options: [
|
|
202
207
|
'Unmarried, Living Together',
|
|
@@ -211,7 +216,7 @@ const maritalStatus = () => sbsSelect({
|
|
|
211
216
|
const phone = () => sbsText({
|
|
212
217
|
$formkit: 'tel',
|
|
213
218
|
name: 'Primary_Phone',
|
|
214
|
-
label: 'Phone Number
|
|
219
|
+
label: 'Phone Number:',
|
|
215
220
|
placeholder: 'xxx-xxx-xxxx',
|
|
216
221
|
// help: '10-digit US phone number, hyphens optional.',
|
|
217
222
|
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
|
|
@@ -227,6 +232,7 @@ const TCPAConsent = () => ({
|
|
|
227
232
|
name: 'TCPA_Opt_In',
|
|
228
233
|
validation: 'required|accepted',
|
|
229
234
|
validationMessages: {
|
|
235
|
+
required: 'Consent is required',
|
|
230
236
|
accepted: 'Consent is required',
|
|
231
237
|
},
|
|
232
238
|
classes: {
|
|
@@ -235,7 +241,7 @@ const TCPAConsent = () => ({
|
|
|
235
241
|
});
|
|
236
242
|
|
|
237
243
|
const zipcode = () => sbsText({
|
|
238
|
-
label: 'Zip Code
|
|
244
|
+
label: 'Zip Code:',
|
|
239
245
|
placeholder: '90210',
|
|
240
246
|
name: 'Zip',
|
|
241
247
|
validation: 'required|matches:/^[0-9]{5}$/',
|
|
@@ -379,7 +385,7 @@ function contactInfo() {
|
|
|
379
385
|
loading: 'lazy',
|
|
380
386
|
alt: '',
|
|
381
387
|
style: { border: 0 },
|
|
382
|
-
src: 'https://
|
|
388
|
+
src: 'https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png',
|
|
383
389
|
width: '320',
|
|
384
390
|
height: '100'
|
|
385
391
|
}
|
|
@@ -510,8 +516,8 @@ const schema = [
|
|
|
510
516
|
props: {
|
|
511
517
|
type: 'form',
|
|
512
518
|
id: 'form',
|
|
513
|
-
onSubmit: '$submit("https://httpbin.org/post", $prepData)',
|
|
514
|
-
// onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
|
|
519
|
+
onSubmit: '$submit("https://httpbin.org/post", $prepData, $getRedirect)',
|
|
520
|
+
// onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData, $getRedirect)',
|
|
515
521
|
plugins: '$plugins',
|
|
516
522
|
actions: false,
|
|
517
523
|
prepop: {
|
|
@@ -522,6 +528,9 @@ const schema = [
|
|
|
522
528
|
409: { abort: false },
|
|
523
529
|
429: "An Error Occurred"
|
|
524
530
|
},
|
|
531
|
+
redirectMap: {
|
|
532
|
+
'*': 'https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${properties.vid}'
|
|
533
|
+
},
|
|
525
534
|
formClass: '!max-w-xl'
|
|
526
535
|
},
|
|
527
536
|
children: [
|
|
@@ -538,7 +547,7 @@ const schema = [
|
|
|
538
547
|
if: '$activeStep === $firstStep()',
|
|
539
548
|
children: 'Contact Us Now for Child Support, Custody and Family Issues',
|
|
540
549
|
attrs: {
|
|
541
|
-
class: 'flex justify-center text-center text-
|
|
550
|
+
class: 'flex justify-center text-center text-md font-medium text-blue-500 px-3'
|
|
542
551
|
}
|
|
543
552
|
},
|
|
544
553
|
{
|
|
@@ -15,23 +15,25 @@ var childAndFamily = (function () {
|
|
|
15
15
|
required: 'Field is required',
|
|
16
16
|
},
|
|
17
17
|
optionsClass: 'pt-3 pl-1',
|
|
18
|
+
legendClass: 'required'
|
|
18
19
|
}, updates)
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
const sbsRadio = (updates) => {
|
|
22
|
-
updates.legendClass = 'legend-left';
|
|
23
|
+
updates.legendClass = 'legend-left required';
|
|
23
24
|
updates.fieldsetClass = '$reset side-by-side';
|
|
24
25
|
updates.optionsClass = 'pl-1';
|
|
25
|
-
updates.innerClass = 'center
|
|
26
|
+
updates.innerClass = 'flex items-center';
|
|
27
|
+
updates.wrapperClass = 'mb-3';
|
|
26
28
|
return radio(updates)
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
const sbsYesNoRadio = (updates) => {
|
|
30
32
|
updates.options = ['Yes', 'No'];
|
|
31
|
-
updates.legendClass = 'legend-left';
|
|
32
|
-
updates.fieldsetClass = '$reset side-by-side';
|
|
33
|
-
updates.optionsClass = 'pl-1 side-by-side center
|
|
34
|
-
updates.innerClass = 'center
|
|
33
|
+
updates.legendClass = 'legend-left required';
|
|
34
|
+
updates.fieldsetClass = '$reset side-by-side items-center';
|
|
35
|
+
updates.optionsClass = 'pl-1 side-by-side items-center';
|
|
36
|
+
updates.innerClass = 'flex items-center';
|
|
35
37
|
return radio(updates)
|
|
36
38
|
};
|
|
37
39
|
|
|
@@ -44,12 +46,13 @@ var childAndFamily = (function () {
|
|
|
44
46
|
required: 'Field is required',
|
|
45
47
|
},
|
|
46
48
|
inputClass: 'bg-white',
|
|
49
|
+
labelClass: 'required'
|
|
47
50
|
}, updates)
|
|
48
51
|
};
|
|
49
52
|
|
|
50
53
|
const sbsSelect = (updates) => {
|
|
51
|
-
updates.labelClass = '
|
|
52
|
-
updates.wrapperClass = 'side-by-side';
|
|
54
|
+
updates.labelClass = 'required';
|
|
55
|
+
updates.wrapperClass = 'side-by-side items-center';
|
|
53
56
|
updates.innerClass = 'select-height-content';
|
|
54
57
|
return select(updates)
|
|
55
58
|
};
|
|
@@ -61,17 +64,18 @@ var childAndFamily = (function () {
|
|
|
61
64
|
validationMessages: {
|
|
62
65
|
required: 'Field is required',
|
|
63
66
|
},
|
|
67
|
+
labelClass: 'required'
|
|
64
68
|
}, updates)
|
|
65
69
|
};
|
|
66
70
|
|
|
67
71
|
const sbsText = (updates) => {
|
|
68
|
-
updates.labelClass = '
|
|
69
|
-
updates.wrapperClass = 'side-by-side';
|
|
72
|
+
updates.labelClass = 'required';
|
|
73
|
+
updates.wrapperClass = 'side-by-side items-center';
|
|
70
74
|
return text(updates)
|
|
71
75
|
};
|
|
72
76
|
|
|
73
77
|
const childAndFamilyTOLP = () => sbsRadio({
|
|
74
|
-
label: '
|
|
78
|
+
label: 'Type of Help Needed:',
|
|
75
79
|
name: 'Type_Of_Legal_Problem',
|
|
76
80
|
id: 'Type_Of_Legal_Problem',
|
|
77
81
|
options: [
|
|
@@ -85,7 +89,7 @@ var childAndFamily = (function () {
|
|
|
85
89
|
});
|
|
86
90
|
|
|
87
91
|
const childHome = () => sbsSelect({
|
|
88
|
-
label: 'With Whom Do the Children Currently Live?
|
|
92
|
+
label: 'With Whom Do the Children Currently Live?',
|
|
89
93
|
name: 'Child_Home',
|
|
90
94
|
options: [
|
|
91
95
|
'Mother',
|
|
@@ -96,7 +100,7 @@ var childAndFamily = (function () {
|
|
|
96
100
|
});
|
|
97
101
|
|
|
98
102
|
const childPrimaryCaregiver = () => sbsSelect({
|
|
99
|
-
label: 'Who is the Primary Caregiver?
|
|
103
|
+
label: 'Who is the Primary Caregiver?',
|
|
100
104
|
name: 'Child_Primary_Caregiver',
|
|
101
105
|
options: [
|
|
102
106
|
'Mother',
|
|
@@ -106,7 +110,7 @@ var childAndFamily = (function () {
|
|
|
106
110
|
});
|
|
107
111
|
|
|
108
112
|
const childRelationship = () => sbsSelect({
|
|
109
|
-
label: 'Your Relationship to Child(ren):
|
|
113
|
+
label: 'Your Relationship to Child(ren):',
|
|
110
114
|
name: 'Child_Relationship',
|
|
111
115
|
options: [
|
|
112
116
|
'Father',
|
|
@@ -119,19 +123,20 @@ var childAndFamily = (function () {
|
|
|
119
123
|
|
|
120
124
|
const comments$1 = () => ({
|
|
121
125
|
$formkit: 'textarea',
|
|
122
|
-
label: 'Please provide a brief description of your situation
|
|
126
|
+
label: 'Please provide a brief description of your situation:',
|
|
123
127
|
name: 'Comments',
|
|
124
128
|
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
|
|
125
129
|
rows: 1,
|
|
126
130
|
validation: 'required',
|
|
127
131
|
maxlength: 1000,
|
|
132
|
+
labelClass: 'required',
|
|
128
133
|
validationMessages: {
|
|
129
134
|
required: 'Description is required',
|
|
130
135
|
},
|
|
131
136
|
});
|
|
132
137
|
|
|
133
138
|
const degreeOfInterest = () => sbsSelect({
|
|
134
|
-
label: 'How Likely Are You to Pay if Your Issue Could be Resolved?
|
|
139
|
+
label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
|
|
135
140
|
name: 'Degree_Of_Interest',
|
|
136
141
|
// help: 'No payment necessary to speak with lawyers.',
|
|
137
142
|
options: [
|
|
@@ -144,7 +149,7 @@ var childAndFamily = (function () {
|
|
|
144
149
|
|
|
145
150
|
const firstName = () => sbsText({
|
|
146
151
|
$formkit: 'text',
|
|
147
|
-
label: 'First Name
|
|
152
|
+
label: 'First Name:',
|
|
148
153
|
name: 'First_Name',
|
|
149
154
|
validation: 'required',
|
|
150
155
|
validationMessages: {
|
|
@@ -155,7 +160,7 @@ var childAndFamily = (function () {
|
|
|
155
160
|
const email = () => sbsText({
|
|
156
161
|
$formkit: 'email',
|
|
157
162
|
name: 'Email',
|
|
158
|
-
label: 'Email Address
|
|
163
|
+
label: 'Email Address:',
|
|
159
164
|
placeholder: 'email@domain.com',
|
|
160
165
|
validation: 'required|email',
|
|
161
166
|
validationMessages: {
|
|
@@ -166,17 +171,17 @@ var childAndFamily = (function () {
|
|
|
166
171
|
|
|
167
172
|
const haveAttorney = () => sbsYesNoRadio({
|
|
168
173
|
name: 'Have_Attorney',
|
|
169
|
-
label: 'Are You Currently Working with An Attorney?
|
|
174
|
+
label: 'Are You Currently Working with An Attorney?',
|
|
170
175
|
});
|
|
171
176
|
|
|
172
177
|
const haveChildren = () => sbsYesNoRadio({
|
|
173
178
|
name: 'Have_Children',
|
|
174
|
-
label: 'Do You Have Children?
|
|
179
|
+
label: 'Do You Have Children?',
|
|
175
180
|
});
|
|
176
181
|
|
|
177
182
|
const lastName = () => sbsText({
|
|
178
183
|
$formkit: 'text',
|
|
179
|
-
label: 'Last Name
|
|
184
|
+
label: 'Last Name:',
|
|
180
185
|
name: 'Last_Name',
|
|
181
186
|
validation: 'required',
|
|
182
187
|
validationMessages: {
|
|
@@ -185,7 +190,7 @@ var childAndFamily = (function () {
|
|
|
185
190
|
});
|
|
186
191
|
|
|
187
192
|
const lawyerPaymentMethod = () => sbsSelect({
|
|
188
|
-
label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?
|
|
193
|
+
label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
|
|
189
194
|
name: 'Lawyer_Payment_Method',
|
|
190
195
|
help: 'No payment necessary to speak with lawyers.',
|
|
191
196
|
options: [
|
|
@@ -199,7 +204,7 @@ var childAndFamily = (function () {
|
|
|
199
204
|
});
|
|
200
205
|
|
|
201
206
|
const maritalStatus = () => sbsSelect({
|
|
202
|
-
label: 'Marital Status
|
|
207
|
+
label: 'Marital Status:',
|
|
203
208
|
name: 'Marital_Status',
|
|
204
209
|
options: [
|
|
205
210
|
'Unmarried, Living Together',
|
|
@@ -214,7 +219,7 @@ var childAndFamily = (function () {
|
|
|
214
219
|
const phone = () => sbsText({
|
|
215
220
|
$formkit: 'tel',
|
|
216
221
|
name: 'Primary_Phone',
|
|
217
|
-
label: 'Phone Number
|
|
222
|
+
label: 'Phone Number:',
|
|
218
223
|
placeholder: 'xxx-xxx-xxxx',
|
|
219
224
|
// help: '10-digit US phone number, hyphens optional.',
|
|
220
225
|
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
|
|
@@ -230,6 +235,7 @@ var childAndFamily = (function () {
|
|
|
230
235
|
name: 'TCPA_Opt_In',
|
|
231
236
|
validation: 'required|accepted',
|
|
232
237
|
validationMessages: {
|
|
238
|
+
required: 'Consent is required',
|
|
233
239
|
accepted: 'Consent is required',
|
|
234
240
|
},
|
|
235
241
|
classes: {
|
|
@@ -238,7 +244,7 @@ var childAndFamily = (function () {
|
|
|
238
244
|
});
|
|
239
245
|
|
|
240
246
|
const zipcode = () => sbsText({
|
|
241
|
-
label: 'Zip Code
|
|
247
|
+
label: 'Zip Code:',
|
|
242
248
|
placeholder: '90210',
|
|
243
249
|
name: 'Zip',
|
|
244
250
|
validation: 'required|matches:/^[0-9]{5}$/',
|
|
@@ -382,7 +388,7 @@ var childAndFamily = (function () {
|
|
|
382
388
|
loading: 'lazy',
|
|
383
389
|
alt: '',
|
|
384
390
|
style: { border: 0 },
|
|
385
|
-
src: 'https://
|
|
391
|
+
src: 'https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png',
|
|
386
392
|
width: '320',
|
|
387
393
|
height: '100'
|
|
388
394
|
}
|
|
@@ -513,8 +519,8 @@ var childAndFamily = (function () {
|
|
|
513
519
|
props: {
|
|
514
520
|
type: 'form',
|
|
515
521
|
id: 'form',
|
|
516
|
-
onSubmit: '$submit("https://httpbin.org/post", $prepData)',
|
|
517
|
-
// onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
|
|
522
|
+
onSubmit: '$submit("https://httpbin.org/post", $prepData, $getRedirect)',
|
|
523
|
+
// onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData, $getRedirect)',
|
|
518
524
|
plugins: '$plugins',
|
|
519
525
|
actions: false,
|
|
520
526
|
prepop: {
|
|
@@ -525,6 +531,9 @@ var childAndFamily = (function () {
|
|
|
525
531
|
409: { abort: false },
|
|
526
532
|
429: "An Error Occurred"
|
|
527
533
|
},
|
|
534
|
+
redirectMap: {
|
|
535
|
+
'*': 'https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${properties.vid}'
|
|
536
|
+
},
|
|
528
537
|
formClass: '!max-w-xl'
|
|
529
538
|
},
|
|
530
539
|
children: [
|
|
@@ -541,7 +550,7 @@ var childAndFamily = (function () {
|
|
|
541
550
|
if: '$activeStep === $firstStep()',
|
|
542
551
|
children: 'Contact Us Now for Child Support, Custody and Family Issues',
|
|
543
552
|
attrs: {
|
|
544
|
-
class: 'flex justify-center text-center text-
|
|
553
|
+
class: 'flex justify-center text-center text-md font-medium text-blue-500 px-3'
|
|
545
554
|
}
|
|
546
555
|
},
|
|
547
556
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"type":"meta","data":{"tcpaLanguage":"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 855-506-0847."}},{"$cmp":"FormKit","props":{"type":"form","id":"form","onSubmit":"$submit(\"https://httpbin.org/post\", $prepData)","plugins":"$plugins","actions":false,"prepop":{"fromURL":true},"errorCodes":{"403":"An Error Occurred","409":{"abort":false},"429":"An Error Occurred"},"formClass":"!max-w-xl"},"children":[{"$el":"h1","if":"$activeStep === $firstStep()","children":"Get Child & Family Help Today","attrs":{"class":"flex justify-center text-center text-3xl font-bold pt-5 px-3"}},{"$el":"h3","if":"$activeStep === $firstStep()","children":"Contact Us Now for Child Support, Custody and Family Issues","attrs":{"class":"flex justify-center text-center text-l font-bold text-blue-500 px-3"}},{"$formkit":"hidden","name":"vertical","value":"Legal"},{"$formkit":"hidden","name":"TCPA_Language","value":"$meta.tcpaLanguage"},{"$formkit":"hidden","name":"gclid","value":null},{"$formkit":"hidden","name":"campaignid","value":null},{"$formkit":"hidden","name":"s","value":null},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","if":"$stepIsEnabled(\"childAndFamilyTOLPAndZip\")","attrs":{"style":{"if":"$activeStep !== \"childAndFamilyTOLPAndZip\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"childAndFamilyTOLPAndZip","name":"childAndFamilyTOLPAndZip","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1","label":"Which Type of Help is Needed? *","name":"Type_Of_Legal_Problem","id":"Type_Of_Legal_Problem","options":["Adoption","Child Custody and Support","Not Sure or Other"],"legendClass":"legend-left","fieldsetClass":"$reset side-by-side","innerClass":"center-label"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"label":"Zip Code *","placeholder":"90210","name":"Zip","labelClass":"center-label","wrapperClass":"side-by-side"}]}]},{"$el":"section","if":"$stepIsEnabled(\"TOLPQuestions\")","attrs":{"style":{"if":"$activeStep !== \"TOLPQuestions\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"TOLPQuestions","name":"TOLPQuestions","children":[{"$el":"h3","children":"Please Complete the Following:","attrs":{"class":"flex justify-center text-center text-2xl font-bold text-blue-500 pb-5 pt-0 px-3"}},{"$cmp":"FormKit","props":{"type":"group","key":"AdoptionQuestions","id":"AdoptionQuestions","name":"AdoptionQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Adoption\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side center-label","name":"Have_Attorney","label":"Are You Currently Working with An Attorney? *","options":["Yes","No"],"legendClass":"legend-left","fieldsetClass":"$reset side-by-side","innerClass":"center-label"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"Marital Status *","name":"Marital_Status","options":["Unmarried, Living Together","Unmarried, Do Not Live Together","Married, Living Together","Separated","Divorced","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side center-label","name":"Have_Children","label":"Do You Have Children? *","options":["Yes","No"],"legendClass":"legend-left","fieldsetClass":"$reset side-by-side","innerClass":"center-label"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"How Likely Are You to Pay if Your Issue Could be Resolved? *","name":"Degree_Of_Interest","options":["Definitely","Probably","Maybe","Absolutely Can't Afford"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"How Will You Pay for Legal Fees if You Hire a Lawyer? *","name":"Lawyer_Payment_Method","help":"No payment necessary to speak with lawyers.","options":["Cash","Check","Credit Card","Friend","Family","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"}]},{"$cmp":"FormKit","props":{"type":"group","key":"ChildCustodyAndSupportQuestions","id":"ChildCustodyAndSupportQuestions","name":"ChildCustodyAndSupportQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Child Custody and Support\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side center-label","name":"Have_Attorney","label":"Are You Currently Working with An Attorney? *","options":["Yes","No"],"legendClass":"legend-left","fieldsetClass":"$reset side-by-side","innerClass":"center-label"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"Your Relationship to Child(ren): *","name":"Child_Relationship","options":["Father","Mother","Grandparent","Aunt/Uncle","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"With Whom Do the Children Currently Live? *","name":"Child_Home","options":["Mother","Father","Grandparents","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"Who is the Primary Caregiver? *","name":"Child_Primary_Caregiver","options":["Mother","Father","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"How Likely Are You to Pay if Your Issue Could be Resolved? *","name":"Degree_Of_Interest","options":["Definitely","Probably","Maybe","Absolutely Can't Afford"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"How Will You Pay for Legal Fees if You Hire a Lawyer? *","name":"Lawyer_Payment_Method","help":"No payment necessary to speak with lawyers.","options":["Cash","Check","Credit Card","Friend","Family","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"}]},{"$cmp":"FormKit","props":{"type":"group","key":"NotSureOrOtherQuestions","id":"NotSureOrOtherQuestions","name":"NotSureOrOtherQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Not Sure or Other\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side center-label","name":"Have_Attorney","label":"Are You Currently Working with An Attorney? *","options":["Yes","No"],"legendClass":"legend-left","fieldsetClass":"$reset side-by-side","innerClass":"center-label"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"How Will You Pay for Legal Fees if You Hire a Lawyer? *","name":"Lawyer_Payment_Method","help":"No payment necessary to speak with lawyers.","options":["Cash","Check","Credit Card","Friend","Family","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"}]}]}]},{"$el":"section","if":"$stepIsEnabled(\"comments\")","attrs":{"style":{"if":"$activeStep !== \"comments\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"comments","name":"comments","children":[{"$formkit":"textarea","label":"Please provide a brief description of your situation *","name":"Comments","placeholder":"For Example: \"I would like help with child support payments\" or \"I need help with visitation rights\"","rows":1,"validation":"required","maxlength":1000,"validationMessages":{"required":"Description is required"}}]}]},{"$el":"section","if":"$stepIsEnabled(\"firstAndLast\")","attrs":{"style":{"if":"$activeStep !== \"firstAndLast\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"firstAndLast","name":"firstAndLast","children":[{"$formkit":"text","validation":"required","validationMessages":{"required":"First Name is required"},"label":"First Name *","name":"First_Name","labelClass":"center-label","wrapperClass":"side-by-side"},{"$formkit":"text","validation":"required","validationMessages":{"required":"Last Name is required"},"label":"Last Name *","name":"Last_Name","labelClass":"center-label","wrapperClass":"side-by-side"}]}]},{"$el":"section","if":"$stepIsEnabled(\"contactInfo\")","attrs":{"style":{"if":"$activeStep !== \"contactInfo\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$el":"h3","children":"Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:","attrs":{"class":"flex justify-center text-center text-lg font-bold pb-5 pt-0 px-3"}},{"$formkit":"email","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"},"name":"Email","label":"Email Address *","placeholder":"email@domain.com","labelClass":"center-label","wrapperClass":"side-by-side"},{"$formkit":"tel","validation":"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/","validationMessages":{"required":"Phone Number is required","matches":"Invalid Phone Number"},"name":"Primary_Phone","label":"Phone Number *","placeholder":"xxx-xxx-xxxx","labelClass":"center-label","wrapperClass":"side-by-side"},{"$formkit":"checkbox","label":"$meta.tcpaLanguage","name":"TCPA_Opt_In","validation":"required|accepted","validationMessages":{"accepted":"Consent is required"},"classes":{"label":"text-xs text-slate-500 font-normal"}},{"$el":"div","if":"$activeStep === $lastStep()","attrs":{"class":"flex justify-center"},"children":[{"$el":"img","attrs":{"loading":"lazy","alt":"","style":{"border":0},"src":"https://www.jotform.com/uploads/bunker_hill/form_files/SecurePrivacy.61e1c17c976f80.61736956.png","width":"320","height":"100"}}]}]}]},{"$el":"div","attrs":{"class":"step-nav"},"children":[{"$formkit":"button","onClick":"$setPreviousStep()","children":"Back","style":{"if":"$activeStep === $firstStep()","then":"visibility: hidden;"}},{"$formkit":"button","onClick":"$setNextStep()","children":"Next","style":{"if":"$activeStep === $lastStep()","then":"display: none;"}},{"$formkit":"submit","label":"Submit","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"}}]},{"$el":"pre","if":"$urlParam(\"fdbg\", \"\") == 1","children":[{"$el":"pre","children":"$stringify( $get(form).value )","attrs":{"class":"text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"text-xs","style":"overflow: scroll"}}]}]}]}]
|
|
1
|
+
[{"type":"meta","data":{"tcpaLanguage":"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 855-506-0847."}},{"$cmp":"FormKit","props":{"type":"form","id":"form","onSubmit":"$submit(\"https://httpbin.org/post\", $prepData, $getRedirect)","plugins":"$plugins","actions":false,"prepop":{"fromURL":true},"errorCodes":{"403":"An Error Occurred","409":{"abort":false},"429":"An Error Occurred"},"redirectMap":{"*":"https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${properties.vid}"},"formClass":"!max-w-xl"},"children":[{"$el":"h1","if":"$activeStep === $firstStep()","children":"Get Child & Family Help Today","attrs":{"class":"flex justify-center text-center text-3xl font-bold pt-5 px-3"}},{"$el":"h3","if":"$activeStep === $firstStep()","children":"Contact Us Now for Child Support, Custody and Family Issues","attrs":{"class":"flex justify-center text-center text-md font-medium text-blue-500 px-3"}},{"$formkit":"hidden","name":"vertical","value":"Legal"},{"$formkit":"hidden","name":"TCPA_Language","value":"$meta.tcpaLanguage"},{"$formkit":"hidden","name":"gclid","value":null},{"$formkit":"hidden","name":"campaignid","value":null},{"$formkit":"hidden","name":"s","value":null},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","if":"$stepIsEnabled(\"childAndFamilyTOLPAndZip\")","attrs":{"style":{"if":"$activeStep !== \"childAndFamilyTOLPAndZip\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"childAndFamilyTOLPAndZip","name":"childAndFamilyTOLPAndZip","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1","legendClass":"legend-left required","label":"Type of Help Needed:","name":"Type_Of_Legal_Problem","id":"Type_Of_Legal_Problem","options":["Adoption","Child Custody and Support","Not Sure or Other"],"fieldsetClass":"$reset side-by-side","innerClass":"flex items-center","wrapperClass":"mb-3"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","label":"Zip Code:","placeholder":"90210","name":"Zip","wrapperClass":"side-by-side items-center"}]}]},{"$el":"section","if":"$stepIsEnabled(\"TOLPQuestions\")","attrs":{"style":{"if":"$activeStep !== \"TOLPQuestions\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"TOLPQuestions","name":"TOLPQuestions","children":[{"$el":"h3","children":"Please Complete the Following:","attrs":{"class":"flex justify-center text-center text-2xl font-bold text-blue-500 pb-5 pt-0 px-3"}},{"$cmp":"FormKit","props":{"type":"group","key":"AdoptionQuestions","id":"AdoptionQuestions","name":"AdoptionQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Adoption\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side items-center","legendClass":"legend-left required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side items-center","innerClass":"flex items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","labelClass":"required","label":"Marital Status:","name":"Marital_Status","options":["Unmarried, Living Together","Unmarried, Do Not Live Together","Married, Living Together","Separated","Divorced","Other"],"wrapperClass":"side-by-side items-center","innerClass":"select-height-content"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side items-center","legendClass":"legend-left required","name":"Have_Children","label":"Do You Have Children?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side items-center","innerClass":"flex items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","labelClass":"required","label":"How Likely Are You to Pay if Your Issue Could be Resolved?","name":"Degree_Of_Interest","options":["Definitely","Probably","Maybe","Absolutely Can't Afford"],"wrapperClass":"side-by-side items-center","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","labelClass":"required","label":"How Will You Pay for Legal Fees if You Hire a Lawyer?","name":"Lawyer_Payment_Method","help":"No payment necessary to speak with lawyers.","options":["Cash","Check","Credit Card","Friend","Family","Other"],"wrapperClass":"side-by-side items-center","innerClass":"select-height-content"}]},{"$cmp":"FormKit","props":{"type":"group","key":"ChildCustodyAndSupportQuestions","id":"ChildCustodyAndSupportQuestions","name":"ChildCustodyAndSupportQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Child Custody and Support\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side items-center","legendClass":"legend-left required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side items-center","innerClass":"flex items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","labelClass":"required","label":"Your Relationship to Child(ren):","name":"Child_Relationship","options":["Father","Mother","Grandparent","Aunt/Uncle","Other"],"wrapperClass":"side-by-side items-center","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","labelClass":"required","label":"With Whom Do the Children Currently Live?","name":"Child_Home","options":["Mother","Father","Grandparents","Other"],"wrapperClass":"side-by-side items-center","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","labelClass":"required","label":"Who is the Primary Caregiver?","name":"Child_Primary_Caregiver","options":["Mother","Father","Other"],"wrapperClass":"side-by-side items-center","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","labelClass":"required","label":"How Likely Are You to Pay if Your Issue Could be Resolved?","name":"Degree_Of_Interest","options":["Definitely","Probably","Maybe","Absolutely Can't Afford"],"wrapperClass":"side-by-side items-center","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","labelClass":"required","label":"How Will You Pay for Legal Fees if You Hire a Lawyer?","name":"Lawyer_Payment_Method","help":"No payment necessary to speak with lawyers.","options":["Cash","Check","Credit Card","Friend","Family","Other"],"wrapperClass":"side-by-side items-center","innerClass":"select-height-content"}]},{"$cmp":"FormKit","props":{"type":"group","key":"NotSureOrOtherQuestions","id":"NotSureOrOtherQuestions","name":"NotSureOrOtherQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Not Sure or Other\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side items-center","legendClass":"legend-left required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side items-center","innerClass":"flex items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","labelClass":"required","label":"How Will You Pay for Legal Fees if You Hire a Lawyer?","name":"Lawyer_Payment_Method","help":"No payment necessary to speak with lawyers.","options":["Cash","Check","Credit Card","Friend","Family","Other"],"wrapperClass":"side-by-side items-center","innerClass":"select-height-content"}]}]}]},{"$el":"section","if":"$stepIsEnabled(\"comments\")","attrs":{"style":{"if":"$activeStep !== \"comments\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"comments","name":"comments","children":[{"$formkit":"textarea","label":"Please provide a brief description of your situation:","name":"Comments","placeholder":"For Example: \"I would like help with child support payments\" or \"I need help with visitation rights\"","rows":1,"validation":"required","maxlength":1000,"labelClass":"required","validationMessages":{"required":"Description is required"}}]}]},{"$el":"section","if":"$stepIsEnabled(\"firstAndLast\")","attrs":{"style":{"if":"$activeStep !== \"firstAndLast\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"firstAndLast","name":"firstAndLast","children":[{"$formkit":"text","validation":"required","validationMessages":{"required":"First Name is required"},"labelClass":"required","label":"First Name:","name":"First_Name","wrapperClass":"side-by-side items-center"},{"$formkit":"text","validation":"required","validationMessages":{"required":"Last Name is required"},"labelClass":"required","label":"Last Name:","name":"Last_Name","wrapperClass":"side-by-side items-center"}]}]},{"$el":"section","if":"$stepIsEnabled(\"contactInfo\")","attrs":{"style":{"if":"$activeStep !== \"contactInfo\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$el":"h3","children":"Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:","attrs":{"class":"flex justify-center text-center text-lg font-bold pb-5 pt-0 px-3"}},{"$formkit":"email","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"},"labelClass":"required","name":"Email","label":"Email Address:","placeholder":"email@domain.com","wrapperClass":"side-by-side items-center"},{"$formkit":"tel","validation":"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/","validationMessages":{"required":"Phone Number is required","matches":"Invalid Phone Number"},"labelClass":"required","name":"Primary_Phone","label":"Phone Number:","placeholder":"xxx-xxx-xxxx","wrapperClass":"side-by-side items-center"},{"$formkit":"checkbox","label":"$meta.tcpaLanguage","name":"TCPA_Opt_In","validation":"required|accepted","validationMessages":{"required":"Consent is required","accepted":"Consent is required"},"classes":{"label":"text-xs text-slate-500 font-normal"}},{"$el":"div","if":"$activeStep === $lastStep()","attrs":{"class":"flex justify-center"},"children":[{"$el":"img","attrs":{"loading":"lazy","alt":"","style":{"border":0},"src":"https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png","width":"320","height":"100"}}]}]}]},{"$el":"div","attrs":{"class":"step-nav"},"children":[{"$formkit":"button","onClick":"$setPreviousStep()","children":"Back","style":{"if":"$activeStep === $firstStep()","then":"visibility: hidden;"}},{"$formkit":"button","onClick":"$setNextStep()","children":"Next","style":{"if":"$activeStep === $lastStep()","then":"display: none;"}},{"$formkit":"submit","label":"Submit","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"}}]},{"$el":"pre","if":"$urlParam(\"fdbg\", \"\") == 1","children":[{"$el":"pre","children":"$stringify( $get(form).value )","attrs":{"class":"text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"text-xs","style":"overflow: scroll"}}]}]}]}]
|
|
@@ -9,12 +9,13 @@ const text = (updates) => {
|
|
|
9
9
|
validationMessages: {
|
|
10
10
|
required: 'Field is required',
|
|
11
11
|
},
|
|
12
|
+
labelClass: 'required'
|
|
12
13
|
}, updates)
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
const sbsText = (updates) => {
|
|
16
|
-
updates.labelClass = '
|
|
17
|
-
updates.wrapperClass = 'side-by-side';
|
|
17
|
+
updates.labelClass = 'required';
|
|
18
|
+
updates.wrapperClass = 'side-by-side items-center';
|
|
18
19
|
return text(updates)
|
|
19
20
|
};
|
|
20
21
|
|
|
@@ -22,7 +23,7 @@ const sbsText = (updates) => {
|
|
|
22
23
|
|
|
23
24
|
const category = () => ({
|
|
24
25
|
$formkit: 'select',
|
|
25
|
-
label: 'Category
|
|
26
|
+
label: 'Category',
|
|
26
27
|
name: 'category',
|
|
27
28
|
id: 'category',
|
|
28
29
|
validation: 'required',
|
|
@@ -34,7 +35,7 @@ const category = () => ({
|
|
|
34
35
|
|
|
35
36
|
const firstName = () => sbsText({
|
|
36
37
|
$formkit: 'text',
|
|
37
|
-
label: 'First Name
|
|
38
|
+
label: 'First Name:',
|
|
38
39
|
name: 'First_Name',
|
|
39
40
|
validation: 'required',
|
|
40
41
|
validationMessages: {
|
|
@@ -45,7 +46,7 @@ const firstName = () => sbsText({
|
|
|
45
46
|
const email = () => sbsText({
|
|
46
47
|
$formkit: 'email',
|
|
47
48
|
name: 'Email',
|
|
48
|
-
label: 'Email Address
|
|
49
|
+
label: 'Email Address:',
|
|
49
50
|
placeholder: 'email@domain.com',
|
|
50
51
|
validation: 'required|email',
|
|
51
52
|
validationMessages: {
|
|
@@ -56,7 +57,7 @@ const email = () => sbsText({
|
|
|
56
57
|
|
|
57
58
|
const lastName = () => sbsText({
|
|
58
59
|
$formkit: 'text',
|
|
59
|
-
label: 'Last Name
|
|
60
|
+
label: 'Last Name:',
|
|
60
61
|
name: 'Last_Name',
|
|
61
62
|
validation: 'required',
|
|
62
63
|
validationMessages: {
|
|
@@ -67,7 +68,7 @@ const lastName = () => sbsText({
|
|
|
67
68
|
const phone = () => sbsText({
|
|
68
69
|
$formkit: 'tel',
|
|
69
70
|
name: 'Primary_Phone',
|
|
70
|
-
label: 'Phone Number
|
|
71
|
+
label: 'Phone Number:',
|
|
71
72
|
placeholder: 'xxx-xxx-xxxx',
|
|
72
73
|
// help: '10-digit US phone number, hyphens optional.',
|
|
73
74
|
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
|
|
@@ -83,6 +84,7 @@ const TCPAConsent = () => ({
|
|
|
83
84
|
name: 'TCPA_Opt_In',
|
|
84
85
|
validation: 'required|accepted',
|
|
85
86
|
validationMessages: {
|
|
87
|
+
required: 'Consent is required',
|
|
86
88
|
accepted: 'Consent is required',
|
|
87
89
|
},
|
|
88
90
|
classes: {
|
|
@@ -91,7 +93,7 @@ const TCPAConsent = () => ({
|
|
|
91
93
|
});
|
|
92
94
|
|
|
93
95
|
const zipcode = () => sbsText({
|
|
94
|
-
label: 'Zip Code
|
|
96
|
+
label: 'Zip Code:',
|
|
95
97
|
placeholder: '90210',
|
|
96
98
|
name: 'Zip',
|
|
97
99
|
validation: 'required|matches:/^[0-9]{5}$/',
|
|
@@ -168,7 +170,7 @@ function contactInfo() {
|
|
|
168
170
|
loading: 'lazy',
|
|
169
171
|
alt: '',
|
|
170
172
|
style: { border: 0 },
|
|
171
|
-
src: 'https://
|
|
173
|
+
src: 'https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png',
|
|
172
174
|
width: '320',
|
|
173
175
|
height: '100'
|
|
174
176
|
}
|