bhl-forms 0.1.33 → 0.2.1

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.
Files changed (74) hide show
  1. package/dist/bhl-forms.es.js +322 -142
  2. package/dist/bhl-forms.iife.js +7 -7
  3. package/dist/bhl-forms.modern.es.js +382 -278
  4. package/dist/bhl-forms.modern.iife.js +10 -10
  5. package/dist/bhl-forms.modern.umd.js +10 -10
  6. package/dist/bhl-forms.umd.js +7 -7
  7. package/dist/forms/accidentsAndInjuries.es.js +63 -77
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +27 -17
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/appraisals.json +1 -1
  13. package/dist/forms/childAndFamily.es.js +38 -78
  14. package/dist/forms/childAndFamily.iife.js +1 -1
  15. package/dist/forms/childAndFamily.json +1 -1
  16. package/dist/forms/civilLawsuit.es.js +63 -77
  17. package/dist/forms/civilLawsuit.iife.js +1 -1
  18. package/dist/forms/civilLawsuit.json +1 -1
  19. package/dist/forms/coins.es.js +27 -17
  20. package/dist/forms/coins.iife.js +1 -1
  21. package/dist/forms/coins.json +1 -1
  22. package/dist/forms/contracts.es.js +96 -88
  23. package/dist/forms/contracts.iife.js +1 -1
  24. package/dist/forms/contracts.json +1 -1
  25. package/dist/forms/criminal.es.js +63 -77
  26. package/dist/forms/criminal.iife.js +1 -1
  27. package/dist/forms/criminal.json +1 -1
  28. package/dist/forms/employmentAndWorkplace.es.js +63 -77
  29. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  30. package/dist/forms/employmentAndWorkplace.json +1 -1
  31. package/dist/forms/generalLegal.es.js +63 -77
  32. package/dist/forms/generalLegal.iife.js +1 -1
  33. package/dist/forms/generalLegal.json +1 -1
  34. package/dist/forms/generalLegalPopUnder.es.js +63 -77
  35. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  36. package/dist/forms/generalLegalPopUnder.json +1 -1
  37. package/dist/forms/generalLegalPopUnderTF.es.js +38 -78
  38. package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
  39. package/dist/forms/generalLegalPopUnderTF.json +1 -1
  40. package/dist/forms/generalLegalThankYou.es.js +63 -77
  41. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  42. package/dist/forms/generalLegalThankYou.json +1 -1
  43. package/dist/forms/harassmentAndDiscrimination.es.js +63 -77
  44. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  45. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  46. package/dist/forms/malpractice.es.js +96 -88
  47. package/dist/forms/malpractice.iife.js +1 -1
  48. package/dist/forms/malpractice.json +1 -1
  49. package/dist/forms/mechanics.es.js +27 -17
  50. package/dist/forms/mechanics.iife.js +1 -1
  51. package/dist/forms/mechanics.json +1 -1
  52. package/dist/forms/realEstate.es.js +63 -77
  53. package/dist/forms/realEstate.iife.js +1 -1
  54. package/dist/forms/realEstate.json +1 -1
  55. package/dist/forms/repossession.es.js +96 -88
  56. package/dist/forms/repossession.iife.js +1 -1
  57. package/dist/forms/repossession.json +1 -1
  58. package/dist/forms/ssdi.es.js +214 -138
  59. package/dist/forms/ssdi.iife.js +1 -1
  60. package/dist/forms/ssdi.json +1 -1
  61. package/dist/forms/testForm.es.js +92 -85
  62. package/dist/forms/testForm.iife.js +1 -1
  63. package/dist/forms/testForm.json +1 -1
  64. package/dist/forms/testRedirects.es.js +19 -10
  65. package/dist/forms/testRedirects.iife.js +1 -1
  66. package/dist/forms/testRedirects.json +1 -1
  67. package/dist/forms/vets.es.js +27 -17
  68. package/dist/forms/vets.iife.js +1 -1
  69. package/dist/forms/vets.json +1 -1
  70. package/dist/forms/willsAndTrusts.es.js +63 -77
  71. package/dist/forms/willsAndTrusts.iife.js +1 -1
  72. package/dist/forms/willsAndTrusts.json +1 -1
  73. package/dist/main.css +1 -1
  74. package/package.json +4 -4
@@ -65,7 +65,8 @@ function defaultMetaProps() {
65
65
  finalHeadlines: TOLPFinalHeadlines,
66
66
  defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
67
67
  finalSubHeadlines: TOLPFinalSubHeadlines,
68
- trustedFormTOLPs: trustedFormTOLPs
68
+ // Added everywhere for now
69
+ // trustedFormTOLPs: trustedFormTOLPs
69
70
  })
70
71
  }
71
72
 
@@ -93,30 +94,90 @@ function formAnchor(updates) {
93
94
  )
94
95
  }
95
96
 
96
- const headlineDefaults = {
97
- $el: 'h1',
97
+ const progressBarDefaults = {
98
+ $el: 'div',
98
99
  attrs: {
99
- class: 't-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3'
100
- }
100
+ class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
101
+ style: {
102
+ if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
103
+ then: 'display: none'
104
+ },
105
+ },
106
+ children: [
107
+ {
108
+ $el: 'div',
109
+ attrs: {
110
+ class: 't-flex t-justify-center'
111
+ },
112
+ children: [
113
+ {
114
+ $el: 'span',
115
+ attrs: {
116
+ id: 'progress-bar-text',
117
+ class: 't-text-sm t-mb-1'
118
+ },
119
+ children: [
120
+ "0% Complete"
121
+ ]
122
+ },
123
+ ]
124
+ },
125
+ {
126
+ $el: 'div',
127
+ attrs: {
128
+ class: 't-bg-gray-100 t-w-9/12 t-rounded'
129
+ },
130
+ children: [
131
+ {
132
+ $el: 'div',
133
+ attrs: {
134
+ id: 'progress-bar',
135
+ class: 't-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]',
136
+ style: {
137
+ transition: 'width 0.5s ease'
138
+ },
139
+ },
140
+ }
141
+ ]
142
+ }
143
+ ]
101
144
  };
102
145
 
103
- function headline(updates) {
146
+ function progressBar(updates) {
104
147
  return merge(
105
- headlineDefaults,
148
+ progressBarDefaults,
106
149
  updates
107
150
  )
108
151
  }
109
152
 
110
- const subHeadlineDefaults = {
111
- $el: 'h3',
112
- attrs: {
113
- class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10'
153
+ function headlineDefaults(updates = {}) {
154
+ return {
155
+ $el: 'h1',
156
+ attrs: {
157
+ class: 't-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3' + ' ' + (updates.headlineClass || '')
158
+ }
114
159
  }
115
- };
160
+ }
116
161
 
117
- function subHeadline(updates) {
162
+ function headline(updates = {}) {
118
163
  return merge(
119
- subHeadlineDefaults,
164
+ headlineDefaults(updates),
165
+ updates
166
+ )
167
+ }
168
+
169
+ function subHeadlineDefaults(updates = {}) {
170
+ return {
171
+ $el: 'h3',
172
+ attrs: {
173
+ class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10' + ' ' + (updates.subHeadlineClass || '')
174
+ }
175
+ }
176
+ }
177
+
178
+ function subHeadline(updates = {}) {
179
+ return merge(
180
+ subHeadlineDefaults(updates),
120
181
  updates
121
182
  )
122
183
  }
@@ -366,61 +427,6 @@ const TOLPFinalSubHeadlines = {
366
427
  // 'Non-Workplace Discrimination': '',
367
428
  };
368
429
 
369
-
370
- const trustedFormTOLPs = {
371
- 'Adoption': true,
372
- // 'Asbestos and Mesothelioma': '',
373
- // 'Auto and Car Accidents': '',
374
- // 'Bankruptcy': '',
375
- // 'Birth Certificate and Name Change': '',
376
- // 'Business Lawyers': '',
377
- 'Child Custody and Support': true,
378
- 'Child Custody': true,
379
- 'Child Support': true,
380
- // 'Civil Rights and Discrimination': '',
381
- // 'Civil Lawsuit': '',
382
- // 'Consumer Lawyers': '',
383
- // 'Copyrights and Trademarks': '',
384
- // 'Criminal and Felony': '',
385
- // 'Debt and Collections': '',
386
- 'Divorce and Separation': true,
387
- // 'DUI and DWI': '',
388
- // 'Elder Law': '',
389
- // 'Employment and Workplace': '',
390
- // 'Expungement': '',
391
- 'Family Issues': true,
392
- // 'Foreclosure': '',
393
- 'Guardianship': true,
394
- // 'Harassment and Discrimination': '',
395
- // 'Identity Theft': '',
396
- // 'Immigration and Visas': '',
397
- // 'Insurance': '',
398
- // 'Landlord and Tenant': '',
399
- // 'Lemon Law': '',
400
- // 'Long Term Disability': '',
401
- // 'Medical Malpractice': '',
402
- // 'Nursing Home Abuse': '',
403
- // 'Patents and Intellectual Property': '',
404
- // 'Personal Injury': '',
405
- // 'Power of Attorney': '',
406
- // 'Probate and Estates': '',
407
- // 'Product Liability': '',
408
- // 'Property Damage': '',
409
- // 'Real Estate': '',
410
- // 'Social Security Disability and Insurance': '',
411
- // 'Tax and IRS': '',
412
- // 'Traffic and Tickets': '',
413
- // 'Unemployment': '',
414
- // 'Vaccination Injury': '',
415
- // 'Veteran\'s Disability': '',
416
- // 'Victim of a Crime': '',
417
- // 'Wills and Trusts': '',
418
- // 'Workers Compensation': '',
419
- // 'Wrongful Death': '',
420
- // 'Wrongful Termination': '',
421
- 'Not Sure or Other': true,
422
- };
423
-
424
430
  // ------ Common Base Settings
425
431
 
426
432
  const checkbox = (updates) => {
@@ -454,18 +460,21 @@ const radio = (updates) => {
454
460
  }, updates)
455
461
  };
456
462
 
457
- const sbs2ItemRadio = (updates) => {
458
- updates.legendClass = 'legend-left t-pb-1 required';
459
- updates.fieldsetClass = '$reset side-by-side t-items-center';
460
- updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
461
- updates.innerClass = 't-flex t-items-center';
462
- updates.optionClass = 't-pr-1';
463
+ const vertical2ItemRadio = (updates) => {
464
+ updates.legendClass = 'legend-left';
465
+ updates.fieldsetClass = '$reset vertical t-items-center';
466
+ updates.optionsClass = 't-flex t-justify-center t-my-4';
467
+ updates.optionClass = 'radiobtn t-mx-5';
468
+ updates.wrapperClass = '$reset formkit-wrapper t-mb-0';
469
+ updates.labelClass = 't-font-semibold t-text-[#1e448f]';
470
+ updates.decoratorIcon = false;
471
+ updates.messagesClass = 't-flex t-justify-center';
463
472
  return radio(updates)
464
473
  };
465
474
 
466
- const sbsYesNoRadio = (updates) => {
475
+ const verticalYesNoRadio = (updates) => {
467
476
  updates.options = ['Yes', 'No'];
468
- return sbs2ItemRadio(updates)
477
+ return vertical2ItemRadio(updates)
469
478
  };
470
479
 
471
480
  const select = (updates) => {
@@ -481,14 +490,14 @@ const select = (updates) => {
481
490
  }, updates)
482
491
  };
483
492
 
484
- const sbsSelect = (updates) => {
493
+ const verticalSelect = (updates) => {
485
494
  updates.labelClass = 'required';
486
- updates.wrapperClass = 'side-by-side t-items-center';
487
- updates.innerClass = 'select-height-content';
488
- updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
495
+ updates.wrapperClass = 't-flex t-justify-center';
496
+ updates.messagesClass = 't-flex t-justify-center';
489
497
  return select(updates)
490
498
  };
491
499
 
500
+
492
501
  const text = (updates) => {
493
502
  return merge({
494
503
  $formkit: 'text',
@@ -519,10 +528,9 @@ const textArea = (updates) => {
519
528
  }, updates)
520
529
  };
521
530
 
522
-
523
- const applicantAge = () => sbsSelect({
524
- label: 'Age of Applicant?',
531
+ const applicantAgeVertical = () => verticalSelect({
525
532
  name: 'Applicant_Age',
533
+ value: "50",
526
534
  options: [
527
535
  "18",
528
536
  "19",
@@ -592,19 +600,19 @@ const comments = (updates) => textArea(
592
600
  }, updates)
593
601
  );
594
602
 
595
- const disabilityConditionStopWork = () => sbsYesNoRadio({
603
+ const disabilityConditionStopWorkVertical = () => verticalYesNoRadio({
596
604
  name: 'Disability_Condition_Stop_Work',
597
- label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
605
+ // label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
598
606
  });
599
607
 
600
- const disabilityWorkHistory = () => sbsYesNoRadio({
608
+ const disabilityWorkHistoryVertical = () => verticalYesNoRadio({
601
609
  name: 'Disability_Work_History',
602
- label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
610
+ // label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
603
611
  });
604
612
 
605
- const doctorTreatment = () => sbsYesNoRadio({
613
+ const doctorTreatmentVertical = () => verticalYesNoRadio({
606
614
  name: 'Doctor_Treatment',
607
- label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
615
+ // label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
608
616
  });
609
617
 
610
618
  const email = () => sbsText({
@@ -631,9 +639,9 @@ const firstName = () => sbsText({
631
639
  }
632
640
  });
633
641
 
634
- const haveAttorney = () => sbsYesNoRadio({
642
+ const haveAttorneyVertical = () => verticalYesNoRadio({
635
643
  name: 'Have_Attorney',
636
- label: 'Already Working with An Attorney?'
644
+ // label: 'Already Working with An Attorney?'
637
645
  });
638
646
 
639
647
  const lastName = () => sbsText({
@@ -664,9 +672,9 @@ const phone = () => sbsText({
664
672
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
665
673
  });
666
674
 
667
- const socialSecurityDisabilityReceivingBenefits = () => sbsYesNoRadio({
675
+ const socialSecurityDisabilityReceivingBenefitsVertical = () => verticalYesNoRadio({
668
676
  name: 'Social_Security_Disability_Receiving_Benefits',
669
- label: 'Are You Currently Receiving Social Security Disability Benefits?'
677
+ // label: 'Are You Currently Receiving Social Security Disability Benefits?'
670
678
  });
671
679
 
672
680
  const TCPAConsent = () => ({
@@ -684,9 +692,8 @@ const TCPAConsent = () => ({
684
692
  }
685
693
  });
686
694
 
687
- const zipcode = () => sbsText({
688
- label: 'Zip Code:',
689
- placeholder: '#####',
695
+ const zipcodeCenter = () => text({
696
+ placeholder: 'Please Enter Your Zip Code',
690
697
  name: 'Zip',
691
698
  maxlength: 5,
692
699
  inputmode: "numeric",
@@ -695,10 +702,13 @@ const zipcode = () => sbsText({
695
702
  validationMessages: {
696
703
  required: 'Zip Code is required',
697
704
  matches: 'Invalid Zip Code'
698
- }
705
+ },
706
+ wrapperClass: 't-flex t-justify-center',
707
+ messagesClass: 't-flex t-justify-center'
699
708
  });
700
709
 
701
710
  const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
711
+ const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
702
712
 
703
713
  const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
704
714
 
@@ -733,22 +743,23 @@ const stepDefaults = (step) => ({
733
743
  }
734
744
  });
735
745
 
736
- function questionsStepHeadline(updates) {
746
+ function verticalStepHeadline(updates) {
737
747
  return {
738
748
  $el: 'h3',
739
749
  children: updates.headline || 'Tell Us About Your Case',
740
750
  attrs: {
741
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3'
751
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-3'
742
752
  }
743
753
  }
744
754
  }
745
755
 
756
+
746
757
  function commentsStepHeadline(updates) {
747
758
  return {
748
759
  $el: 'h3',
749
760
  children: updates.headline || 'Additional Case Details',
750
761
  attrs: {
751
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3'
762
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3' + ' ' + (updates.headlineClass || '')
752
763
  }
753
764
  }
754
765
  }
@@ -758,7 +769,7 @@ function firstAndLastStepHeadline(updates) {
758
769
  $el: 'h3',
759
770
  children: updates.headline || 'Please Provide a Contact Name',
760
771
  attrs: {
761
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3'
772
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3' + ' ' + (updates.headlineClass || '')
762
773
  }
763
774
  }
764
775
  }
@@ -783,13 +794,44 @@ function contactStepSubHeadline(updates) {
783
794
  }
784
795
  }
785
796
 
786
- function step(name, inputs, nextOnEnter = true) {
797
+ const TRUSTED_FORM_JS = `(function() {
798
+ if (window.xxTrustedFormLoaded) {
799
+ return
800
+ }
801
+ var vid = '';
802
+ if (typeof window.zar !== 'undefined') {
803
+ vid = window.zar.getVID();
804
+ }
805
+ window.xxTrustedFormLoaded = true;
806
+ var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
807
+ var tf = document.createElement('script');
808
+ tf.type = 'text/javascript'; tf.async = true;
809
+ tf.src = ("https:" == document.location.protocol ? 'https' : 'http') + "://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=" + vid + "&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=" + sandbox + "&l=" + new Date().getTime() + Math.random();
810
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
811
+ })();`;
812
+
813
+ function trustedFormScript() {
814
+ return {
815
+ $el: 'script',
816
+ // if: '$activeStep === $lastStep() && $getKey($meta, "trustedFormTOLPs." + $get(Type_Of_Legal_Problem).value, false) == true',
817
+ // Added everywhere:
818
+ if: '$activeStep === $lastStep()',
819
+ children: TRUSTED_FORM_JS
820
+ }
821
+ }
822
+
823
+ function step(name, inputs, nextOnEnter = true, nextOnInput = false) {
787
824
  if (typeof nextOnEnter === 'undefined') {
788
825
  nextOnEnter = true;
789
826
  }
790
- if (inputs && inputs.length && nextOnEnter) {
827
+ if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
791
828
  const lastInput = findLastInput(inputs[inputs.length - 1]);
792
- lastInput.onKeypress = NEXT_ON_ENTER;
829
+ if (nextOnEnter === true) {
830
+ lastInput.onKeypress = NEXT_ON_ENTER;
831
+ }
832
+ if (nextOnInput === true) {
833
+ lastInput.onInput = NEXT_ON_INPUT;
834
+ }
793
835
  }
794
836
 
795
837
  return merge(
@@ -813,7 +855,7 @@ function commentsWithBankruptcyV2(updates = {}) {
813
855
  [
814
856
  commentsStepHeadline(updates),
815
857
  comments({
816
- label: updates.label || DEFAULT_COMMENTS_LABEL,
858
+ label: updates.label === undefined ? DEFAULT_COMMENTS_LABEL : updates.label,
817
859
  placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC
818
860
  }),
819
861
  bankruptcyCrossSell()
@@ -828,6 +870,8 @@ function contactInfoV2(updates = {}) {
828
870
  [
829
871
  contactStepHeadline(updates),
830
872
  contactStepSubHeadline(updates),
873
+ // Added TF everywhere
874
+ trustedFormScript(),
831
875
  email(),
832
876
  phone(),
833
877
  TCPAConsent(),
@@ -859,9 +903,10 @@ function ssdiTOLPAndZip(updates = {}) {
859
903
  id: "Type_Of_Legal_Problem",
860
904
  value: "Social Security Disability and Insurance"
861
905
  },
862
- zipcode()
906
+ zipcodeCenter()
863
907
  ],
864
- updates.nextOnEnter
908
+ updates.nextOnEnter,
909
+ updates.nextOnInput
865
910
  )
866
911
  }
867
912
 
@@ -869,10 +914,11 @@ function ssdiApplicantAge(updates = {}) {
869
914
  return step(
870
915
  'ssdiApplicantAge',
871
916
  [
872
- questionsStepHeadline(updates),
873
- applicantAge(),
917
+ verticalStepHeadline(updates),
918
+ applicantAgeVertical(),
874
919
  ],
875
- updates.nextOnEnter
920
+ updates.nextOnEnter,
921
+ updates.nextOnInput
876
922
  )
877
923
  }
878
924
 
@@ -880,10 +926,11 @@ function ssdiDisabilityConditionStopWork(updates = {}) {
880
926
  return step(
881
927
  'ssdiDisabilityConditionStopWork',
882
928
  [
883
- questionsStepHeadline(updates),
884
- disabilityConditionStopWork(),
929
+ verticalStepHeadline(updates),
930
+ disabilityConditionStopWorkVertical(),
885
931
  ],
886
- updates.nextOnEnter
932
+ updates.nextOnEnter,
933
+ updates.nextOnInput
887
934
  )
888
935
  }
889
936
 
@@ -891,10 +938,11 @@ function ssdiDisabilityWorkHistory(updates = {}) {
891
938
  return step(
892
939
  'ssdiDisabilityWorkHistory',
893
940
  [
894
- questionsStepHeadline(updates),
895
- disabilityWorkHistory(),
941
+ verticalStepHeadline(updates),
942
+ disabilityWorkHistoryVertical(),
896
943
  ],
897
- updates.nextOnEnter
944
+ updates.nextOnEnter,
945
+ updates.nextOnInput
898
946
  )
899
947
  }
900
948
 
@@ -902,10 +950,11 @@ function ssdiSocialSecurityDisabilityReceivingBenefits(updates = {}) {
902
950
  return step(
903
951
  'ssdiSocialSecurityDisabilityReceivingBenefits',
904
952
  [
905
- questionsStepHeadline(updates),
906
- socialSecurityDisabilityReceivingBenefits(),
953
+ verticalStepHeadline(updates),
954
+ socialSecurityDisabilityReceivingBenefitsVertical(),
907
955
  ],
908
- updates.nextOnEnter
956
+ updates.nextOnEnter,
957
+ updates.nextOnInput
909
958
  )
910
959
  }
911
960
 
@@ -913,10 +962,11 @@ function ssdiDoctorTreatment(updates = {}) {
913
962
  return step(
914
963
  'ssdiDoctorTreatment',
915
964
  [
916
- questionsStepHeadline(updates),
917
- doctorTreatment(),
965
+ verticalStepHeadline(updates),
966
+ doctorTreatmentVertical(),
918
967
  ],
919
- updates.nextOnEnter
968
+ updates.nextOnEnter,
969
+ updates.nextOnInput
920
970
  )
921
971
  }
922
972
 
@@ -925,10 +975,11 @@ function ssdiHaveAttorney(updates = {}) {
925
975
  return step(
926
976
  'ssdiHaveAttorney',
927
977
  [
928
- questionsStepHeadline(updates),
929
- haveAttorney(),
978
+ verticalStepHeadline(updates),
979
+ haveAttorneyVertical(),
930
980
  ],
931
- updates.nextOnEnter
981
+ updates.nextOnEnter,
982
+ updates.nextOnInput
932
983
  )
933
984
  }
934
985
 
@@ -941,7 +992,7 @@ const formNavigationV2 = () => ({
941
992
  {
942
993
  $formkit: 'button',
943
994
  name: 'back_button',
944
- onClick: '$setPreviousStep($scrollAnchor($get(form)))',
995
+ onClick: '$setPreviousStep($prevStepFunc($get(form)))',
945
996
  children: 'Back',
946
997
  style: {
947
998
  if: '$activeStep === $firstStep()',
@@ -1031,13 +1082,15 @@ const schema = [
1031
1082
  },
1032
1083
  }),
1033
1084
  children: [
1085
+ progressBar(),
1034
1086
  headline({
1035
1087
  children: '$urlParam("hl", "Start Your FREE Case Application Now")',
1036
- if: '$activeStep === $firstStep()'
1088
+ if: '$activeStep === $firstStep()',
1089
+ headlineClass: '!t-text-dark'
1037
1090
  }),
1038
1091
  subHeadline({
1039
- children: '$urlParam("shl", "Complete the Application to Find Out If We Can Assist You in Obtaining $3,148 Per Month in Disability Benefits")',
1040
- if: '$activeStep === $firstStep()'
1092
+ children: '$urlParam("shl", "Find Out If We Can Assist You in Obtaining $3,148 Per Month in Disability Benefits")',
1093
+ if: '$activeStep === $firstStep()',
1041
1094
  }),
1042
1095
  ...hiddenInputsLegal,
1043
1096
  {
@@ -1047,16 +1100,39 @@ const schema = [
1047
1100
  },
1048
1101
  children: [
1049
1102
  ssdiTOLPAndZip(),
1050
- ssdiApplicantAge(),
1051
- ssdiDisabilityConditionStopWork(),
1052
- ssdiDisabilityWorkHistory(),
1053
- ssdiSocialSecurityDisabilityReceivingBenefits(),
1054
- ssdiDoctorTreatment(),
1055
- ssdiHaveAttorney(),
1103
+ ssdiApplicantAge({
1104
+ nextOnInput: true,
1105
+ headline: 'What is the Age of the Applicant?'
1106
+ }),
1107
+ ssdiDisabilityConditionStopWork({
1108
+ nextOnInput: true,
1109
+ headline: "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?"
1110
+ }),
1111
+ ssdiDisabilityWorkHistory({
1112
+ nextOnInput: true,
1113
+ headline: "Have You Had a Full-Time Job Within the Past 5 Years?"
1114
+ }),
1115
+ ssdiSocialSecurityDisabilityReceivingBenefits({
1116
+ nextOnInput: true,
1117
+ headline: "Are You Currently Receiving Social Security Disability Benefits?"
1118
+ }),
1119
+ ssdiDoctorTreatment({
1120
+ nextOnInput: true,
1121
+ headline: "Have You Recently Been Treated by a Doctor, Hospital or Clinic?"
1122
+ }),
1123
+ ssdiHaveAttorney({
1124
+ nextOnInput: true,
1125
+ headline: "Already Working with An Attorney?"
1126
+ }),
1056
1127
  commentsWithBankruptcyV2({
1057
- nextOnEnter: false
1128
+ nextOnEnter: false,
1129
+ label: null,
1130
+ headline: 'Please briefly describe your situation:',
1131
+ headlineClass: '!t-text-dark'
1132
+ }),
1133
+ firstAndLastV2({
1134
+ headlineClass: '!t-text-dark'
1058
1135
  }),
1059
- firstAndLastV2(),
1060
1136
  contactInfoV2({
1061
1137
  headline: 'Submit Your Free Application',
1062
1138
  subheadline: 'Based on your input you may qualify for SSDI benefits. Please verify your contact information.',