bhl-forms 0.0.10 → 0.0.13
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 +61 -51
- package/dist/forms/childAndFamily.iife.js +61 -51
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/testForm.es.js +14 -11
- package/dist/forms/testForm.iife.js +14 -11
- 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}$/',
|
|
@@ -230,12 +235,12 @@ const TCPAConsent = () => ({
|
|
|
230
235
|
accepted: 'Consent is required',
|
|
231
236
|
},
|
|
232
237
|
classes: {
|
|
233
|
-
label: "text-xs text-slate-500"
|
|
238
|
+
label: "text-xs text-slate-500 font-normal"
|
|
234
239
|
}
|
|
235
240
|
});
|
|
236
241
|
|
|
237
242
|
const zipcode = () => sbsText({
|
|
238
|
-
label: 'Zip Code
|
|
243
|
+
label: 'Zip Code:',
|
|
239
244
|
placeholder: '90210',
|
|
240
245
|
name: 'Zip',
|
|
241
246
|
validation: 'required|matches:/^[0-9]{5}$/',
|
|
@@ -360,7 +365,7 @@ function contactInfo() {
|
|
|
360
365
|
$el: 'h3',
|
|
361
366
|
children: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
|
|
362
367
|
attrs: {
|
|
363
|
-
class: 'flex justify-center text-lg font-bold pb-5 pt-0'
|
|
368
|
+
class: 'flex justify-center text-center text-lg font-bold pb-5 pt-0 px-3'
|
|
364
369
|
}
|
|
365
370
|
},
|
|
366
371
|
email(),
|
|
@@ -379,7 +384,7 @@ function contactInfo() {
|
|
|
379
384
|
loading: 'lazy',
|
|
380
385
|
alt: '',
|
|
381
386
|
style: { border: 0 },
|
|
382
|
-
src: 'https://
|
|
387
|
+
src: 'https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png',
|
|
383
388
|
width: '320',
|
|
384
389
|
height: '100'
|
|
385
390
|
}
|
|
@@ -402,6 +407,27 @@ function firstAndLast() {
|
|
|
402
407
|
)
|
|
403
408
|
}
|
|
404
409
|
|
|
410
|
+
function TOLPQuestions() {
|
|
411
|
+
return step(
|
|
412
|
+
'TOLPQuestions',
|
|
413
|
+
[
|
|
414
|
+
{
|
|
415
|
+
$el: 'h3',
|
|
416
|
+
children: 'Please Complete the Following:',
|
|
417
|
+
attrs: {
|
|
418
|
+
class: 'flex justify-center text-center text-2xl font-bold text-blue-500 pb-5 pt-0 px-3'
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
AdoptionQuestions(),
|
|
422
|
+
ChildCustodyAndSupportQuestions(),
|
|
423
|
+
NotSureOrOtherQuestions()
|
|
424
|
+
],
|
|
425
|
+
...arguments
|
|
426
|
+
)
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
// ------ Utilities
|
|
430
|
+
|
|
405
431
|
const formNavigation = () => ({
|
|
406
432
|
$el: 'div',
|
|
407
433
|
attrs: {
|
|
@@ -477,25 +503,6 @@ const formDetails = () => ({
|
|
|
477
503
|
]
|
|
478
504
|
});
|
|
479
505
|
|
|
480
|
-
function TOLPQuestions() {
|
|
481
|
-
return step(
|
|
482
|
-
'TOLPQuestions',
|
|
483
|
-
[
|
|
484
|
-
{
|
|
485
|
-
$el: 'h3',
|
|
486
|
-
children: 'Please Complete the Following:',
|
|
487
|
-
attrs: {
|
|
488
|
-
class: 'flex justify-center text-2xl font-bold text-blue-500 pb-5 pt-0'
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
AdoptionQuestions(),
|
|
492
|
-
ChildCustodyAndSupportQuestions(),
|
|
493
|
-
NotSureOrOtherQuestions()
|
|
494
|
-
],
|
|
495
|
-
...arguments
|
|
496
|
-
)
|
|
497
|
-
}
|
|
498
|
-
|
|
499
506
|
const schema = [
|
|
500
507
|
{
|
|
501
508
|
type: 'meta',
|
|
@@ -508,8 +515,8 @@ const schema = [
|
|
|
508
515
|
props: {
|
|
509
516
|
type: 'form',
|
|
510
517
|
id: 'form',
|
|
511
|
-
onSubmit: '$submit("https://httpbin.org/post", $prepData)',
|
|
512
|
-
// onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
|
|
518
|
+
onSubmit: '$submit("https://httpbin.org/post", $prepData, $getRedirect)',
|
|
519
|
+
// onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData, $getRedirect)',
|
|
513
520
|
plugins: '$plugins',
|
|
514
521
|
actions: false,
|
|
515
522
|
prepop: {
|
|
@@ -520,6 +527,9 @@ const schema = [
|
|
|
520
527
|
409: { abort: false },
|
|
521
528
|
429: "An Error Occurred"
|
|
522
529
|
},
|
|
530
|
+
redirectMap: {
|
|
531
|
+
'*': 'https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${properties.vid}'
|
|
532
|
+
},
|
|
523
533
|
formClass: '!max-w-xl'
|
|
524
534
|
},
|
|
525
535
|
children: [
|
|
@@ -528,7 +538,7 @@ const schema = [
|
|
|
528
538
|
if: '$activeStep === $firstStep()',
|
|
529
539
|
children: 'Get Child & Family Help Today',
|
|
530
540
|
attrs: {
|
|
531
|
-
class: 'flex justify-center text-3xl font-bold pt-5'
|
|
541
|
+
class: 'flex justify-center text-center text-3xl font-bold pt-5 px-3'
|
|
532
542
|
}
|
|
533
543
|
},
|
|
534
544
|
{
|
|
@@ -536,7 +546,7 @@ const schema = [
|
|
|
536
546
|
if: '$activeStep === $firstStep()',
|
|
537
547
|
children: 'Contact Us Now for Child Support, Custody and Family Issues',
|
|
538
548
|
attrs: {
|
|
539
|
-
class: 'flex justify-center text-
|
|
549
|
+
class: 'flex justify-center text-center text-md font-medium text-blue-500 px-3'
|
|
540
550
|
}
|
|
541
551
|
},
|
|
542
552
|
{
|
|
@@ -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}$/',
|
|
@@ -233,12 +238,12 @@ var childAndFamily = (function () {
|
|
|
233
238
|
accepted: 'Consent is required',
|
|
234
239
|
},
|
|
235
240
|
classes: {
|
|
236
|
-
label: "text-xs text-slate-500"
|
|
241
|
+
label: "text-xs text-slate-500 font-normal"
|
|
237
242
|
}
|
|
238
243
|
});
|
|
239
244
|
|
|
240
245
|
const zipcode = () => sbsText({
|
|
241
|
-
label: 'Zip Code
|
|
246
|
+
label: 'Zip Code:',
|
|
242
247
|
placeholder: '90210',
|
|
243
248
|
name: 'Zip',
|
|
244
249
|
validation: 'required|matches:/^[0-9]{5}$/',
|
|
@@ -363,7 +368,7 @@ var childAndFamily = (function () {
|
|
|
363
368
|
$el: 'h3',
|
|
364
369
|
children: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
|
|
365
370
|
attrs: {
|
|
366
|
-
class: 'flex justify-center text-lg font-bold pb-5 pt-0'
|
|
371
|
+
class: 'flex justify-center text-center text-lg font-bold pb-5 pt-0 px-3'
|
|
367
372
|
}
|
|
368
373
|
},
|
|
369
374
|
email(),
|
|
@@ -382,7 +387,7 @@ var childAndFamily = (function () {
|
|
|
382
387
|
loading: 'lazy',
|
|
383
388
|
alt: '',
|
|
384
389
|
style: { border: 0 },
|
|
385
|
-
src: 'https://
|
|
390
|
+
src: 'https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png',
|
|
386
391
|
width: '320',
|
|
387
392
|
height: '100'
|
|
388
393
|
}
|
|
@@ -405,6 +410,27 @@ var childAndFamily = (function () {
|
|
|
405
410
|
)
|
|
406
411
|
}
|
|
407
412
|
|
|
413
|
+
function TOLPQuestions() {
|
|
414
|
+
return step(
|
|
415
|
+
'TOLPQuestions',
|
|
416
|
+
[
|
|
417
|
+
{
|
|
418
|
+
$el: 'h3',
|
|
419
|
+
children: 'Please Complete the Following:',
|
|
420
|
+
attrs: {
|
|
421
|
+
class: 'flex justify-center text-center text-2xl font-bold text-blue-500 pb-5 pt-0 px-3'
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
AdoptionQuestions(),
|
|
425
|
+
ChildCustodyAndSupportQuestions(),
|
|
426
|
+
NotSureOrOtherQuestions()
|
|
427
|
+
],
|
|
428
|
+
...arguments
|
|
429
|
+
)
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// ------ Utilities
|
|
433
|
+
|
|
408
434
|
const formNavigation = () => ({
|
|
409
435
|
$el: 'div',
|
|
410
436
|
attrs: {
|
|
@@ -480,25 +506,6 @@ var childAndFamily = (function () {
|
|
|
480
506
|
]
|
|
481
507
|
});
|
|
482
508
|
|
|
483
|
-
function TOLPQuestions() {
|
|
484
|
-
return step(
|
|
485
|
-
'TOLPQuestions',
|
|
486
|
-
[
|
|
487
|
-
{
|
|
488
|
-
$el: 'h3',
|
|
489
|
-
children: 'Please Complete the Following:',
|
|
490
|
-
attrs: {
|
|
491
|
-
class: 'flex justify-center text-2xl font-bold text-blue-500 pb-5 pt-0'
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
AdoptionQuestions(),
|
|
495
|
-
ChildCustodyAndSupportQuestions(),
|
|
496
|
-
NotSureOrOtherQuestions()
|
|
497
|
-
],
|
|
498
|
-
...arguments
|
|
499
|
-
)
|
|
500
|
-
}
|
|
501
|
-
|
|
502
509
|
const schema = [
|
|
503
510
|
{
|
|
504
511
|
type: 'meta',
|
|
@@ -511,8 +518,8 @@ var childAndFamily = (function () {
|
|
|
511
518
|
props: {
|
|
512
519
|
type: 'form',
|
|
513
520
|
id: 'form',
|
|
514
|
-
onSubmit: '$submit("https://httpbin.org/post", $prepData)',
|
|
515
|
-
// onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
|
|
521
|
+
onSubmit: '$submit("https://httpbin.org/post", $prepData, $getRedirect)',
|
|
522
|
+
// onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData, $getRedirect)',
|
|
516
523
|
plugins: '$plugins',
|
|
517
524
|
actions: false,
|
|
518
525
|
prepop: {
|
|
@@ -523,6 +530,9 @@ var childAndFamily = (function () {
|
|
|
523
530
|
409: { abort: false },
|
|
524
531
|
429: "An Error Occurred"
|
|
525
532
|
},
|
|
533
|
+
redirectMap: {
|
|
534
|
+
'*': 'https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${properties.vid}'
|
|
535
|
+
},
|
|
526
536
|
formClass: '!max-w-xl'
|
|
527
537
|
},
|
|
528
538
|
children: [
|
|
@@ -531,7 +541,7 @@ var childAndFamily = (function () {
|
|
|
531
541
|
if: '$activeStep === $firstStep()',
|
|
532
542
|
children: 'Get Child & Family Help Today',
|
|
533
543
|
attrs: {
|
|
534
|
-
class: 'flex justify-center text-3xl font-bold pt-5'
|
|
544
|
+
class: 'flex justify-center text-center text-3xl font-bold pt-5 px-3'
|
|
535
545
|
}
|
|
536
546
|
},
|
|
537
547
|
{
|
|
@@ -539,7 +549,7 @@ var childAndFamily = (function () {
|
|
|
539
549
|
if: '$activeStep === $firstStep()',
|
|
540
550
|
children: 'Contact Us Now for Child Support, Custody and Family Issues',
|
|
541
551
|
attrs: {
|
|
542
|
-
class: 'flex justify-center text-
|
|
552
|
+
class: 'flex justify-center text-center text-md font-medium text-blue-500 px-3'
|
|
543
553
|
}
|
|
544
554
|
},
|
|
545
555
|
{
|