bhl-forms 0.0.7 → 0.0.10

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.
@@ -68,7 +68,7 @@ const sbsText = (updates) => {
68
68
  };
69
69
 
70
70
  const childAndFamilyTOLP = () => sbsRadio({
71
- label: 'Type of Legal Issue *',
71
+ label: 'Which Type of Help is Needed? *',
72
72
  name: 'Type_Of_Legal_Problem',
73
73
  id: 'Type_Of_Legal_Problem',
74
74
  options: [
@@ -84,7 +84,6 @@ const childAndFamilyTOLP = () => sbsRadio({
84
84
  const childHome = () => sbsSelect({
85
85
  label: 'With Whom Do the Children Currently Live? *',
86
86
  name: 'Child_Home',
87
- // id: 'Child_Home',
88
87
  options: [
89
88
  'Mother',
90
89
  'Father',
@@ -131,7 +130,7 @@ const comments$1 = () => ({
131
130
  const degreeOfInterest = () => sbsSelect({
132
131
  label: 'How Likely Are You to Pay if Your Issue Could be Resolved? *',
133
132
  name: 'Degree_Of_Interest',
134
- help: 'No payment necessary to speak with lawyers.',
133
+ // help: 'No payment necessary to speak with lawyers.',
135
134
  options: [
136
135
  'Definitely',
137
136
  'Probably',
@@ -140,7 +139,7 @@ const degreeOfInterest = () => sbsSelect({
140
139
  ]
141
140
  });
142
141
 
143
- const firstName = () => ({
142
+ const firstName = () => sbsText({
144
143
  $formkit: 'text',
145
144
  label: 'First Name *',
146
145
  name: 'First_Name',
@@ -150,7 +149,7 @@ const firstName = () => ({
150
149
  },
151
150
  });
152
151
 
153
- const email = () => ({
152
+ const email = () => sbsText({
154
153
  $formkit: 'email',
155
154
  name: 'Email',
156
155
  label: 'Email Address *',
@@ -172,7 +171,7 @@ const haveChildren = () => sbsYesNoRadio({
172
171
  label: 'Do You Have Children? *',
173
172
  });
174
173
 
175
- const lastName = () => ({
174
+ const lastName = () => sbsText({
176
175
  $formkit: 'text',
177
176
  label: 'Last Name *',
178
177
  name: 'Last_Name',
@@ -209,12 +208,12 @@ const maritalStatus = () => sbsSelect({
209
208
  ]
210
209
  });
211
210
 
212
- const phone = () => ({
211
+ const phone = () => sbsText({
213
212
  $formkit: 'tel',
214
213
  name: 'Primary_Phone',
215
214
  label: 'Phone Number *',
216
215
  placeholder: 'xxx-xxx-xxxx',
217
- help: '10-digit US phone number, hyphens optional.',
216
+ // help: '10-digit US phone number, hyphens optional.',
218
217
  validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
219
218
  validationMessages: {
220
219
  required: 'Phone Number is required',
@@ -291,6 +290,17 @@ const ChildCustodyAndSupportQuestions = () => group(
291
290
  }
292
291
  );
293
292
 
293
+ const NotSureOrOtherQuestions = () => group(
294
+ 'NotSureOrOtherQuestions',
295
+ {
296
+ if: '$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',
297
+ children: [
298
+ haveAttorney(),
299
+ lawyerPaymentMethod()
300
+ ]
301
+ }
302
+ );
303
+
294
304
  const stepDefaults = (step) => ({
295
305
  $el: 'section',
296
306
  if: '$stepIsEnabled("' + step + '")',
@@ -346,21 +356,36 @@ function contactInfo() {
346
356
  return step(
347
357
  'contactInfo',
348
358
  [
359
+ {
360
+ $el: 'h3',
361
+ children: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
362
+ attrs: {
363
+ class: 'flex justify-center text-lg font-bold pb-5 pt-0'
364
+ }
365
+ },
349
366
  email(),
350
367
  phone(),
351
368
  TCPAConsent(),
352
369
  {
353
- $el: 'img',
370
+ $el: 'div',
354
371
  if: '$activeStep === $lastStep()',
355
372
  attrs: {
356
- loading: 'lazy',
357
- alt: '',
358
- style: { border: 0 },
359
- src: 'https://www.jotform.com/uploads/bunker_hill/form_files/SecurePrivacy.61e1c17c976f80.61736956.png',
360
- width: '320',
361
- height: '100'
362
- }
363
- },
373
+ class: 'flex justify-center'
374
+ },
375
+ children: [
376
+ {
377
+ $el: 'img',
378
+ attrs: {
379
+ loading: 'lazy',
380
+ alt: '',
381
+ style: { border: 0 },
382
+ src: 'https://www.jotform.com/uploads/bunker_hill/form_files/SecurePrivacy.61e1c17c976f80.61736956.png',
383
+ width: '320',
384
+ height: '100'
385
+ }
386
+ }
387
+ ]
388
+ }
364
389
  ],
365
390
  ...arguments
366
391
  )
@@ -386,7 +411,7 @@ const formNavigation = () => ({
386
411
  {
387
412
  $formkit: 'button',
388
413
  onClick: '$setPreviousStep()',
389
- children: 'Previous Step',
414
+ children: 'Back',
390
415
  style: {
391
416
  if: '$activeStep === $firstStep()',
392
417
  then: 'visibility: hidden;'
@@ -395,7 +420,7 @@ const formNavigation = () => ({
395
420
  {
396
421
  $formkit: 'button',
397
422
  onClick: '$setNextStep()',
398
- children: 'Next Step',
423
+ children: 'Next',
399
424
  style: {
400
425
  if: '$activeStep === $lastStep()',
401
426
  then: 'display: none;'
@@ -403,7 +428,7 @@ const formNavigation = () => ({
403
428
  },
404
429
  {
405
430
  $formkit: 'submit',
406
- label: 'Submit Application',
431
+ label: 'Submit',
407
432
  if: '$activeStep === $lastStep()',
408
433
  style: {
409
434
  if: '$activeStep !== $lastStep()',
@@ -460,11 +485,12 @@ function TOLPQuestions() {
460
485
  $el: 'h3',
461
486
  children: 'Please Complete the Following:',
462
487
  attrs: {
463
- class: 'flex justify-center text-xl font-bold text-blue-500 pb-3'
488
+ class: 'flex justify-center text-2xl font-bold text-blue-500 pb-5 pt-0'
464
489
  }
465
490
  },
466
491
  AdoptionQuestions(),
467
- ChildCustodyAndSupportQuestions()
492
+ ChildCustodyAndSupportQuestions(),
493
+ NotSureOrOtherQuestions()
468
494
  ],
469
495
  ...arguments
470
496
  )
@@ -482,9 +508,8 @@ const schema = [
482
508
  props: {
483
509
  type: 'form',
484
510
  id: 'form',
485
- // onSubmit: '$submit("https://httpbin.org/post")',
486
- // onSubmit: '$submit("https://httpbin.org/post", "https://www.google.com?x=${vertical}")',
487
- onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
511
+ onSubmit: '$submit("https://httpbin.org/post", $prepData)',
512
+ // onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
488
513
  plugins: '$plugins',
489
514
  actions: false,
490
515
  prepop: {
@@ -501,15 +526,15 @@ const schema = [
501
526
  {
502
527
  $el: 'h1',
503
528
  if: '$activeStep === $firstStep()',
504
- children: 'Need Help? Start Here!',
529
+ children: 'Get Child & Family Help Today',
505
530
  attrs: {
506
- class: 'flex justify-center text-3xl font-bold'
531
+ class: 'flex justify-center text-3xl font-bold pt-5'
507
532
  }
508
533
  },
509
534
  {
510
535
  $el: 'h3',
511
536
  if: '$activeStep === $firstStep()',
512
- children: 'Get Your Questions Answered Today!',
537
+ children: 'Contact Us Now for Child Support, Custody and Family Issues',
513
538
  attrs: {
514
539
  class: 'flex justify-center text-l font-bold text-blue-500'
515
540
  }
@@ -545,16 +570,7 @@ const schema = [
545
570
  class: 'form-body'
546
571
  },
547
572
  children: [
548
- childAndFamilyTOLPAndZip(
549
- {
550
- nextStepMap: {
551
- 'Type_Of_Legal_Problem': {
552
- 'Not Sure or Other': ['comments', 'firstAndLast', 'contactInfo'],
553
- },
554
- '*': ['TOLPQuestions', 'comments', 'firstAndLast', 'contactInfo']
555
- }
556
- }
557
- ),
573
+ childAndFamilyTOLPAndZip(),
558
574
  TOLPQuestions(),
559
575
  comments(),
560
576
  firstAndLast(),
@@ -71,7 +71,7 @@ var childAndFamily = (function () {
71
71
  };
72
72
 
73
73
  const childAndFamilyTOLP = () => sbsRadio({
74
- label: 'Type of Legal Issue *',
74
+ label: 'Which Type of Help is Needed? *',
75
75
  name: 'Type_Of_Legal_Problem',
76
76
  id: 'Type_Of_Legal_Problem',
77
77
  options: [
@@ -87,7 +87,6 @@ var childAndFamily = (function () {
87
87
  const childHome = () => sbsSelect({
88
88
  label: 'With Whom Do the Children Currently Live? *',
89
89
  name: 'Child_Home',
90
- // id: 'Child_Home',
91
90
  options: [
92
91
  'Mother',
93
92
  'Father',
@@ -134,7 +133,7 @@ var childAndFamily = (function () {
134
133
  const degreeOfInterest = () => sbsSelect({
135
134
  label: 'How Likely Are You to Pay if Your Issue Could be Resolved? *',
136
135
  name: 'Degree_Of_Interest',
137
- help: 'No payment necessary to speak with lawyers.',
136
+ // help: 'No payment necessary to speak with lawyers.',
138
137
  options: [
139
138
  'Definitely',
140
139
  'Probably',
@@ -143,7 +142,7 @@ var childAndFamily = (function () {
143
142
  ]
144
143
  });
145
144
 
146
- const firstName = () => ({
145
+ const firstName = () => sbsText({
147
146
  $formkit: 'text',
148
147
  label: 'First Name *',
149
148
  name: 'First_Name',
@@ -153,7 +152,7 @@ var childAndFamily = (function () {
153
152
  },
154
153
  });
155
154
 
156
- const email = () => ({
155
+ const email = () => sbsText({
157
156
  $formkit: 'email',
158
157
  name: 'Email',
159
158
  label: 'Email Address *',
@@ -175,7 +174,7 @@ var childAndFamily = (function () {
175
174
  label: 'Do You Have Children? *',
176
175
  });
177
176
 
178
- const lastName = () => ({
177
+ const lastName = () => sbsText({
179
178
  $formkit: 'text',
180
179
  label: 'Last Name *',
181
180
  name: 'Last_Name',
@@ -212,12 +211,12 @@ var childAndFamily = (function () {
212
211
  ]
213
212
  });
214
213
 
215
- const phone = () => ({
214
+ const phone = () => sbsText({
216
215
  $formkit: 'tel',
217
216
  name: 'Primary_Phone',
218
217
  label: 'Phone Number *',
219
218
  placeholder: 'xxx-xxx-xxxx',
220
- help: '10-digit US phone number, hyphens optional.',
219
+ // help: '10-digit US phone number, hyphens optional.',
221
220
  validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
222
221
  validationMessages: {
223
222
  required: 'Phone Number is required',
@@ -294,6 +293,17 @@ var childAndFamily = (function () {
294
293
  }
295
294
  );
296
295
 
296
+ const NotSureOrOtherQuestions = () => group(
297
+ 'NotSureOrOtherQuestions',
298
+ {
299
+ if: '$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',
300
+ children: [
301
+ haveAttorney(),
302
+ lawyerPaymentMethod()
303
+ ]
304
+ }
305
+ );
306
+
297
307
  const stepDefaults = (step) => ({
298
308
  $el: 'section',
299
309
  if: '$stepIsEnabled("' + step + '")',
@@ -349,21 +359,36 @@ var childAndFamily = (function () {
349
359
  return step(
350
360
  'contactInfo',
351
361
  [
362
+ {
363
+ $el: 'h3',
364
+ children: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
365
+ attrs: {
366
+ class: 'flex justify-center text-lg font-bold pb-5 pt-0'
367
+ }
368
+ },
352
369
  email(),
353
370
  phone(),
354
371
  TCPAConsent(),
355
372
  {
356
- $el: 'img',
373
+ $el: 'div',
357
374
  if: '$activeStep === $lastStep()',
358
375
  attrs: {
359
- loading: 'lazy',
360
- alt: '',
361
- style: { border: 0 },
362
- src: 'https://www.jotform.com/uploads/bunker_hill/form_files/SecurePrivacy.61e1c17c976f80.61736956.png',
363
- width: '320',
364
- height: '100'
365
- }
366
- },
376
+ class: 'flex justify-center'
377
+ },
378
+ children: [
379
+ {
380
+ $el: 'img',
381
+ attrs: {
382
+ loading: 'lazy',
383
+ alt: '',
384
+ style: { border: 0 },
385
+ src: 'https://www.jotform.com/uploads/bunker_hill/form_files/SecurePrivacy.61e1c17c976f80.61736956.png',
386
+ width: '320',
387
+ height: '100'
388
+ }
389
+ }
390
+ ]
391
+ }
367
392
  ],
368
393
  ...arguments
369
394
  )
@@ -389,7 +414,7 @@ var childAndFamily = (function () {
389
414
  {
390
415
  $formkit: 'button',
391
416
  onClick: '$setPreviousStep()',
392
- children: 'Previous Step',
417
+ children: 'Back',
393
418
  style: {
394
419
  if: '$activeStep === $firstStep()',
395
420
  then: 'visibility: hidden;'
@@ -398,7 +423,7 @@ var childAndFamily = (function () {
398
423
  {
399
424
  $formkit: 'button',
400
425
  onClick: '$setNextStep()',
401
- children: 'Next Step',
426
+ children: 'Next',
402
427
  style: {
403
428
  if: '$activeStep === $lastStep()',
404
429
  then: 'display: none;'
@@ -406,7 +431,7 @@ var childAndFamily = (function () {
406
431
  },
407
432
  {
408
433
  $formkit: 'submit',
409
- label: 'Submit Application',
434
+ label: 'Submit',
410
435
  if: '$activeStep === $lastStep()',
411
436
  style: {
412
437
  if: '$activeStep !== $lastStep()',
@@ -463,11 +488,12 @@ var childAndFamily = (function () {
463
488
  $el: 'h3',
464
489
  children: 'Please Complete the Following:',
465
490
  attrs: {
466
- class: 'flex justify-center text-xl font-bold text-blue-500 pb-3'
491
+ class: 'flex justify-center text-2xl font-bold text-blue-500 pb-5 pt-0'
467
492
  }
468
493
  },
469
494
  AdoptionQuestions(),
470
- ChildCustodyAndSupportQuestions()
495
+ ChildCustodyAndSupportQuestions(),
496
+ NotSureOrOtherQuestions()
471
497
  ],
472
498
  ...arguments
473
499
  )
@@ -485,9 +511,8 @@ var childAndFamily = (function () {
485
511
  props: {
486
512
  type: 'form',
487
513
  id: 'form',
488
- // onSubmit: '$submit("https://httpbin.org/post")',
489
- // onSubmit: '$submit("https://httpbin.org/post", "https://www.google.com?x=${vertical}")',
490
- onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
514
+ onSubmit: '$submit("https://httpbin.org/post", $prepData)',
515
+ // onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
491
516
  plugins: '$plugins',
492
517
  actions: false,
493
518
  prepop: {
@@ -504,15 +529,15 @@ var childAndFamily = (function () {
504
529
  {
505
530
  $el: 'h1',
506
531
  if: '$activeStep === $firstStep()',
507
- children: 'Need Help? Start Here!',
532
+ children: 'Get Child & Family Help Today',
508
533
  attrs: {
509
- class: 'flex justify-center text-3xl font-bold'
534
+ class: 'flex justify-center text-3xl font-bold pt-5'
510
535
  }
511
536
  },
512
537
  {
513
538
  $el: 'h3',
514
539
  if: '$activeStep === $firstStep()',
515
- children: 'Get Your Questions Answered Today!',
540
+ children: 'Contact Us Now for Child Support, Custody and Family Issues',
516
541
  attrs: {
517
542
  class: 'flex justify-center text-l font-bold text-blue-500'
518
543
  }
@@ -548,16 +573,7 @@ var childAndFamily = (function () {
548
573
  class: 'form-body'
549
574
  },
550
575
  children: [
551
- childAndFamilyTOLPAndZip(
552
- {
553
- nextStepMap: {
554
- 'Type_Of_Legal_Problem': {
555
- 'Not Sure or Other': ['comments', 'firstAndLast', 'contactInfo'],
556
- },
557
- '*': ['TOLPQuestions', 'comments', 'firstAndLast', 'contactInfo']
558
- }
559
- }
560
- ),
576
+ childAndFamilyTOLPAndZip(),
561
577
  TOLPQuestions(),
562
578
  comments(),
563
579
  firstAndLast(),
@@ -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(\"http://localhost:8080/api/v1/form_leads_ext\", $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":"Need Help? Start Here!","attrs":{"class":"flex justify-center text-3xl font-bold"}},{"$el":"h3","if":"$activeStep === $firstStep()","children":"Get Your Questions Answered Today!","attrs":{"class":"flex justify-center text-l font-bold text-blue-500"}},{"$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":"Type of Legal Issue *","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"}],"nextStepMap":{"Type_Of_Legal_Problem":{"Not Sure or Other":["comments","firstAndLast","contactInfo"]},"*":["TOLPQuestions","comments","firstAndLast","contactInfo"]}}]},{"$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-xl font-bold text-blue-500 pb-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","help":"No payment necessary to speak with lawyers.","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","help":"No payment necessary to speak with lawyers.","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"}]}]}]},{"$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","label":"First Name *","name":"First_Name","validation":"required","validationMessages":{"required":"First Name is required"}},{"$formkit":"text","label":"Last Name *","name":"Last_Name","validation":"required","validationMessages":{"required":"Last Name is required"}}]}]},{"$el":"section","if":"$stepIsEnabled(\"contactInfo\")","attrs":{"style":{"if":"$activeStep !== \"contactInfo\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$formkit":"email","name":"Email","label":"Email Address *","placeholder":"email@domain.com","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"}},{"$formkit":"tel","name":"Primary_Phone","label":"Phone Number *","placeholder":"xxx-xxx-xxxx","help":"10-digit US phone number, hyphens optional.","validation":"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/","validationMessages":{"required":"Phone Number is required","matches":"Invalid Phone Number"}},{"$formkit":"checkbox","label":"$meta.tcpaLanguage","name":"TCPA_Opt_In","validation":"required|accepted","validationMessages":{"accepted":"Consent is required"},"classes":{"label":"text-xs text-slate-500"}},{"$el":"img","if":"$activeStep === $lastStep()","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":"Previous Step","style":{"if":"$activeStep === $firstStep()","then":"visibility: hidden;"}},{"$formkit":"button","onClick":"$setNextStep()","children":"Next Step","style":{"if":"$activeStep === $lastStep()","then":"display: none;"}},{"$formkit":"submit","label":"Submit Application","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)","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-3xl font-bold pt-5"}},{"$el":"h3","if":"$activeStep === $firstStep()","children":"Contact Us Now for Child Support, Custody and Family Issues","attrs":{"class":"flex justify-center text-l font-bold text-blue-500"}},{"$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-2xl font-bold text-blue-500 pb-5 pt-0"}},{"$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-lg font-bold pb-5 pt-0"}},{"$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"}},{"$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"}}]}]}]}]
@@ -32,7 +32,7 @@ const category = () => ({
32
32
  ]
33
33
  });
34
34
 
35
- const firstName = () => ({
35
+ const firstName = () => sbsText({
36
36
  $formkit: 'text',
37
37
  label: 'First Name *',
38
38
  name: 'First_Name',
@@ -42,7 +42,7 @@ const firstName = () => ({
42
42
  },
43
43
  });
44
44
 
45
- const email = () => ({
45
+ const email = () => sbsText({
46
46
  $formkit: 'email',
47
47
  name: 'Email',
48
48
  label: 'Email Address *',
@@ -54,7 +54,7 @@ const email = () => ({
54
54
  },
55
55
  });
56
56
 
57
- const lastName = () => ({
57
+ const lastName = () => sbsText({
58
58
  $formkit: 'text',
59
59
  label: 'Last Name *',
60
60
  name: 'Last_Name',
@@ -64,12 +64,12 @@ const lastName = () => ({
64
64
  },
65
65
  });
66
66
 
67
- const phone = () => ({
67
+ const phone = () => sbsText({
68
68
  $formkit: 'tel',
69
69
  name: 'Primary_Phone',
70
70
  label: 'Phone Number *',
71
71
  placeholder: 'xxx-xxx-xxxx',
72
- help: '10-digit US phone number, hyphens optional.',
72
+ // help: '10-digit US phone number, hyphens optional.',
73
73
  validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
74
74
  validationMessages: {
75
75
  required: 'Phone Number is required',
@@ -145,21 +145,36 @@ function contactInfo() {
145
145
  return step(
146
146
  'contactInfo',
147
147
  [
148
+ {
149
+ $el: 'h3',
150
+ children: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
151
+ attrs: {
152
+ class: 'flex justify-center text-lg font-bold pb-5 pt-0'
153
+ }
154
+ },
148
155
  email(),
149
156
  phone(),
150
157
  TCPAConsent(),
151
158
  {
152
- $el: 'img',
159
+ $el: 'div',
153
160
  if: '$activeStep === $lastStep()',
154
161
  attrs: {
155
- loading: 'lazy',
156
- alt: '',
157
- style: { border: 0 },
158
- src: 'https://www.jotform.com/uploads/bunker_hill/form_files/SecurePrivacy.61e1c17c976f80.61736956.png',
159
- width: '320',
160
- height: '100'
161
- }
162
- },
162
+ class: 'flex justify-center'
163
+ },
164
+ children: [
165
+ {
166
+ $el: 'img',
167
+ attrs: {
168
+ loading: 'lazy',
169
+ alt: '',
170
+ style: { border: 0 },
171
+ src: 'https://www.jotform.com/uploads/bunker_hill/form_files/SecurePrivacy.61e1c17c976f80.61736956.png',
172
+ width: '320',
173
+ height: '100'
174
+ }
175
+ }
176
+ ]
177
+ }
163
178
  ],
164
179
  ...arguments
165
180
  )
@@ -185,7 +200,7 @@ const formNavigation = () => ({
185
200
  {
186
201
  $formkit: 'button',
187
202
  onClick: '$setPreviousStep()',
188
- children: 'Previous Step',
203
+ children: 'Back',
189
204
  style: {
190
205
  if: '$activeStep === $firstStep()',
191
206
  then: 'visibility: hidden;'
@@ -194,7 +209,7 @@ const formNavigation = () => ({
194
209
  {
195
210
  $formkit: 'button',
196
211
  onClick: '$setNextStep()',
197
- children: 'Next Step',
212
+ children: 'Next',
198
213
  style: {
199
214
  if: '$activeStep === $lastStep()',
200
215
  then: 'display: none;'
@@ -202,7 +217,7 @@ const formNavigation = () => ({
202
217
  },
203
218
  {
204
219
  $formkit: 'submit',
205
- label: 'Submit Application',
220
+ label: 'Submit',
206
221
  if: '$activeStep === $lastStep()',
207
222
  style: {
208
223
  if: '$activeStep !== $lastStep()',