bhl-forms 0.0.46 → 0.0.47

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.
@@ -54,7 +54,7 @@ const formAnchorDefaults = {
54
54
  attrs: {
55
55
  id: "form-anchor",
56
56
  class: 't-absolute',
57
- style: { top: '-20px', left: 0 }
57
+ style: { top: '-30px', left: 0 }
58
58
  }
59
59
  }
60
60
  ],
@@ -515,6 +515,27 @@ const NotSureOrOtherQuestions = () => group(
515
515
  }
516
516
  );
517
517
 
518
+ const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form))))';
519
+
520
+ const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
521
+
522
+ const findLastInput = (n) => {
523
+ if (isInput(n)) {
524
+ return n
525
+ }
526
+ for (var i = n.children.length - 1; i >= 0; i--) {
527
+ const child = n.children[i];
528
+ if (isInput(child)) {
529
+ return child
530
+ }
531
+ const res = findLastInput(child);
532
+ if (res) {
533
+ return res
534
+ }
535
+ }
536
+ return null
537
+ };
538
+
518
539
  const stepDefaults = (step) => ({
519
540
  $el: 'section',
520
541
  if: '$stepIsEnabled("' + step + '")',
@@ -526,32 +547,38 @@ const stepDefaults = (step) => ({
526
547
  }
527
548
  });
528
549
 
529
- // ...args get merged onto the group since the 'section' node basically
530
- // disappears in the formkit hierarchy
531
- function step(name, inputs, ...args) {
550
+ function step(name, inputs, nextOnEnter = true) {
551
+ if (typeof nextOnEnter === 'undefined') {
552
+ nextOnEnter = true;
553
+ }
554
+ if (inputs && inputs.length && nextOnEnter) {
555
+ const lastInput = findLastInput(inputs[inputs.length - 1]);
556
+ lastInput.onKeypress = NEXT_ON_ENTER;
557
+ }
558
+
532
559
  return merge(
533
560
  stepDefaults(name),
534
561
  {
535
562
  children: [
536
- merge({
563
+ {
537
564
  $formkit: 'group',
538
565
  id: name,
539
566
  name: name,
540
567
  children: inputs
541
- }, ...args)
568
+ }
542
569
  ]
543
570
  }
544
571
  )
545
572
  }
546
573
 
547
- function childAndFamilyTOLPAndZip() {
574
+ function childAndFamilyTOLPAndZip(updates = {}) {
548
575
  return step(
549
576
  'childAndFamilyTOLPAndZip',
550
577
  [
551
578
  childAndFamilyTOLP(),
552
579
  zipcode()
553
580
  ],
554
- ...arguments
581
+ updates.nextOnEnter
555
582
  )
556
583
  }
557
584
 
@@ -565,7 +592,7 @@ function comments(updates = {}) {
565
592
  placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER
566
593
  })
567
594
  ],
568
- ...arguments
595
+ updates.nextOnEnter
569
596
  )
570
597
  }
571
598
 
@@ -587,22 +614,22 @@ function contactInfo(updates = {}) {
587
614
  TCPAConsent(),
588
615
  privacyIcons()
589
616
  ],
590
- ...arguments
617
+ updates.nextOnEnter
591
618
  )
592
619
  }
593
620
 
594
- function firstAndLast() {
621
+ function firstAndLast(updates = {}) {
595
622
  return step(
596
623
  'firstAndLast',
597
624
  [
598
625
  firstName(),
599
626
  lastName()
600
627
  ],
601
- ...arguments
628
+ updates.nextOnEnter
602
629
  )
603
630
  }
604
631
 
605
- function childAndFamilyTOLPQuestions() {
632
+ function childAndFamilyTOLPQuestions(updates = {}) {
606
633
  return step(
607
634
  'TOLPQuestions',
608
635
  [
@@ -620,7 +647,7 @@ function childAndFamilyTOLPQuestions() {
620
647
  DivorceQuestions(),
621
648
  NotSureOrOtherQuestions()
622
649
  ],
623
- ...arguments
650
+ updates.nextOnEnter
624
651
  )
625
652
  }
626
653
 
@@ -739,11 +766,13 @@ const schema = [
739
766
  childAndFamilyTOLPAndZip(),
740
767
  childAndFamilyTOLPQuestions(),
741
768
  comments({
742
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
769
+ placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
770
+ nextOnEnter: false
743
771
  }),
744
772
  firstAndLast(),
745
773
  contactInfo({
746
- headline: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:'
774
+ headline: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
775
+ nextOnEnter: false
747
776
  }),
748
777
  formNavigation(),
749
778
  formDetails()
@@ -1 +1 @@
1
- var childAndFamily=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e){return"https://justanswer.9pctbx.net/c/2880795/"+e+"/9320?sharedid=${properties.vid}"}const i={type:"form",id:"form",onSubmit:'$submit("https://httpbin.org/post", $prepData, $getRedirect)',plugins:"$plugins",actions:!1,prepop:{fromURL:!0},errorCodes:{403:"An Error Occurred",409:{abort:!1},429:"An Error Occurred"},formClass:"!t-max-w-[38rem]"};const r={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-20px",left:0}}}],attrs:{class:"t-relative"}};const a={$el:"h1",attrs:{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"}};const l={$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center !t-text-base t-font-medium t-text-blue-500 t-px-10"}};const s={$el:"div",if:"$activeStep === $lastStep()",attrs:{class:"t-flex t-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"}}]};function n(t){return e(s,t)}const o=t=>e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t),d=e=>(e.options=["Yes","No"],(e=>(e.legendClass="legend-left t-pb-1 required",e.fieldsetClass="$reset side-by-side t-items-center",e.optionsClass="t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center",e.innerClass="t-flex t-items-center",o(e)))(e)),p=t=>(t.labelClass="required",t.wrapperClass="side-by-side t-items-center",t.innerClass="select-height-content",t.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",(t=>e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},t))(t)),u=t=>(t.wrapperClass="side-by-side t-items-center",(t=>e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t))(t)),c=()=>{return(e={label:"Type of Help Needed:",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",options:["Adoption","Child Custody and Support","Family Issues","Guardianship","Divorce and Separation","Not Sure or Other"]}).legendClass="legend-left-flex md:t-max-w-[40%] required",e.fieldsetClass="$reset side-by-side-flex",e.optionsClass="md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125",e.innerClass="t-flex t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",o(e);var e},m=t=>(t=>e({$formkit:"textarea",rows:7,maxlength:1e3,validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t))(e({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"'},t)),h=e=>p({label:"How Likely Are You to Pay if Your Issue Could be Resolved?",name:"Degree_Of_Interest",help:e,options:["Definitely","Probably","Maybe","Absolutely Can't Afford"]}),f=()=>u({$formkit:"email",name:"Email",label:"Email Address:",placeholder:"email@domain.com",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"}}),y=()=>u({$formkit:"text",label:"First Name:",name:"First_Name",validationMessages:{required:"First Name is required"}}),g=()=>d({name:"Have_Attorney",label:"Are You Currently Working with An Attorney?"}),v=()=>d({name:"Have_Children",label:"Do You Have Children?"}),b=()=>u({$formkit:"text",label:"Last Name:",name:"Last_Name",validationMessages:{required:"Last Name is required"}}),$=()=>p({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"]}),x=()=>p({label:"Marital Status:",name:"Marital_Status",options:["Unmarried, Living Together","Unmarried, Do Not Live Together","Married, Living Together","Separated","Divorced","Other"]}),C=()=>u({$formkit:"tel",name:"Primary_Phone",label:"Phone Number:",placeholder:"xxx-xxx-xxxx",maxlength:12,help:"10-digit phone number, hyphens optional",validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/",validationMessages:{required:"Field is required",matches:"Invalid Phone Number, use xxx-xxx-xxxx format"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]"}),_=()=>u({label:"Zip Code:",placeholder:"90210",name:"Zip",maxlength:5,inputmode:"numeric",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"}}),w=(t,i)=>e({$cmp:"FormKit",props:{type:"group",key:t,id:t,name:t}},i),q=()=>w("AdoptionQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Adoption"',children:[g(),x(),v(),h(),$()]}),S=()=>w("ChildCustodyAndSupportQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',children:[g(),p({label:"Your Relationship to Child(ren):",name:"Child_Relationship",options:["Father","Mother","Grandparent","Aunt/Uncle","Other"]}),p({label:"With Whom Do the Children Currently Live?",name:"Child_Home",options:["Mother","Father","Grandparents","Other"]}),p({label:"Who is the Primary Caregiver?",name:"Child_Primary_Caregiver",options:["Mother","Father","Other"]}),h(),$()]}),k=()=>w("DivorceQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',children:[g(),x(),v(),h(),$()]}),P=()=>w("FamilyIssuesQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Family Issues"',children:[g(),x(),v(),h(),$()]}),L=()=>w("GuardianshipQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Guardianship"',children:[g(),x(),v(),h(),$()]}),F=()=>w("NotSureOrOtherQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',children:[g(),h("No payment necessary to speak with lawyers.")]});function O(t,i,...r){return e((e=>({$el:"section",if:'$stepIsEnabled("'+e+'")',attrs:{style:{if:'$activeStep !== "'+e+'"',then:"display: none;"}}}))(t),{children:[e({$formkit:"group",id:t,name:t,children:i},...r)]})}const A='For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';const I="Based on your input, you may benefit from speaking with a legal professional. Please verify your contact information.";const T=[e({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."}},M),function(t){return e(r,t)}(),{$cmp:"FormKit",props:function(t){return e(i,t)}({formId:"childAndFamily",onSubmit:"$submit($submitUrl, $prepData, $getRedirect)",redirectMap:{"properties.Type_Of_Legal_Problem":{Adoption:t("565949"),"Child Custody and Support":t("565949"),"Divorce and Separation":t("966410"),Guardianship:t("565949")},"*":t("808601")},anchorElement:"form-anchor"}),children:[function(t){return e(a,t)}({children:"Get Child & Family Help Today",if:"$activeStep === $firstStep()"}),function(t){return e(l,t)}({children:"Contact Us Now for Child Support, Custody and Family Issues",if:"$activeStep === $firstStep()"}),{$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:[function(){return O("childAndFamilyTOLPAndZip",[c(),_()],...arguments)}(),function(){return O("TOLPQuestions",[{$el:"h3",children:"Please Complete the Following:",attrs:{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"}},q(),S(),P(),L(),k(),F()],...arguments)}(),function(e={}){return O("comments",[m({placeholder:e.placeholder||A})],...arguments)}({placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'}),function(){return O("firstAndLast",[y(),b()],...arguments)}(),function(e={}){return O("contactInfo",[{$el:"h3",children:e.headline||I,attrs:{class:"t-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-px-3"}},f(),C(),{$formkit:"checkbox",label:"$meta.tcpaLanguage",name:"TCPA_Opt_In",validation:"required|accepted",validationMessages:{required:"Consent is required",accepted:"Consent is required"},classes:{label:"t-text-xs t-text-slate-500 t-font-normal"}},n()],...arguments)}({headline:"Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:"}),{$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",onClick:"$setPreviousStep()",children:"Back",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"button",onClick:"$setNextStep($fireStepEvent($get(form)))",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:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var M;return T}();
1
+ var childAndFamily=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e){return"https://justanswer.9pctbx.net/c/2880795/"+e+"/9320?sharedid=${properties.vid}"}const r={type:"form",id:"form",onSubmit:'$submit("https://httpbin.org/post", $prepData, $getRedirect)',plugins:"$plugins",actions:!1,prepop:{fromURL:!0},errorCodes:{403:"An Error Occurred",409:{abort:!1},429:"An Error Occurred"},formClass:"!t-max-w-[38rem]"};const i={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const a={$el:"h1",attrs:{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"}};const l={$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center !t-text-base t-font-medium t-text-blue-500 t-px-10"}};const n={$el:"div",if:"$activeStep === $lastStep()",attrs:{class:"t-flex t-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"}}]};function s(t){return e(n,t)}const o=t=>e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t),d=e=>(e.options=["Yes","No"],(e=>(e.legendClass="legend-left t-pb-1 required",e.fieldsetClass="$reset side-by-side t-items-center",e.optionsClass="t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center",e.innerClass="t-flex t-items-center",o(e)))(e)),p=t=>(t.labelClass="required",t.wrapperClass="side-by-side t-items-center",t.innerClass="select-height-content",t.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",(t=>e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},t))(t)),u=t=>(t.wrapperClass="side-by-side t-items-center",(t=>e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t))(t)),c=()=>{return(e={label:"Type of Help Needed:",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",options:["Adoption","Child Custody and Support","Family Issues","Guardianship","Divorce and Separation","Not Sure or Other"]}).legendClass="legend-left-flex md:t-max-w-[40%] required",e.fieldsetClass="$reset side-by-side-flex",e.optionsClass="md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125",e.innerClass="t-flex t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",o(e);var e},m=t=>(t=>e({$formkit:"textarea",rows:7,maxlength:1e3,validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t))(e({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"'},t)),h=e=>p({label:"How Likely Are You to Pay if Your Issue Could be Resolved?",name:"Degree_Of_Interest",help:e,options:["Definitely","Probably","Maybe","Absolutely Can't Afford"]}),f=()=>d({name:"Have_Attorney",label:"Are You Currently Working with An Attorney?"}),y=()=>d({name:"Have_Children",label:"Do You Have Children?"}),g=()=>p({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"]}),v=()=>p({label:"Marital Status:",name:"Marital_Status",options:["Unmarried, Living Together","Unmarried, Do Not Live Together","Married, Living Together","Separated","Divorced","Other"]}),$=(t,r)=>e({$cmp:"FormKit",props:{type:"group",key:t,id:t,name:t}},r),x=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,b=e=>{if(x(e))return e;for(var t=e.children.length-1;t>=0;t--){const r=e.children[t];if(x(r))return r;const i=b(r);if(i)return i}return null};function C(t,r,i=!0){if(void 0===i&&(i=!0),r&&r.length&&i){b(r[r.length-1]).onKeypress="$onEnter($setNextStep($fireStepEvent($get(form))))"}return e((e=>({$el:"section",if:'$stepIsEnabled("'+e+'")',attrs:{style:{if:'$activeStep !== "'+e+'"',then:"display: none;"}}}))(t),{children:[{$formkit:"group",id:t,name:t,children:r}]})}const _=[e({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."}},w),function(t){return e(i,t)}(),{$cmp:"FormKit",props:function(t){return e(r,t)}({formId:"childAndFamily",onSubmit:"$submit($submitUrl, $prepData, $getRedirect)",redirectMap:{"properties.Type_Of_Legal_Problem":{Adoption:t("565949"),"Child Custody and Support":t("565949"),"Divorce and Separation":t("966410"),Guardianship:t("565949")},"*":t("808601")},anchorElement:"form-anchor"}),children:[function(t){return e(a,t)}({children:"Get Child & Family Help Today",if:"$activeStep === $firstStep()"}),function(t){return e(l,t)}({children:"Contact Us Now for Child Support, Custody and Family Issues",if:"$activeStep === $firstStep()"}),{$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:[function(e={}){return C("childAndFamilyTOLPAndZip",[c(),u({label:"Zip Code:",placeholder:"90210",name:"Zip",maxlength:5,inputmode:"numeric",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"}})],e.nextOnEnter)}(),function(e={}){return C("TOLPQuestions",[{$el:"h3",children:"Please Complete the Following:",attrs:{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"}},$("AdoptionQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Adoption"',children:[f(),v(),y(),h(),g()]}),$("ChildCustodyAndSupportQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',children:[f(),p({label:"Your Relationship to Child(ren):",name:"Child_Relationship",options:["Father","Mother","Grandparent","Aunt/Uncle","Other"]}),p({label:"With Whom Do the Children Currently Live?",name:"Child_Home",options:["Mother","Father","Grandparents","Other"]}),p({label:"Who is the Primary Caregiver?",name:"Child_Primary_Caregiver",options:["Mother","Father","Other"]}),h(),g()]}),$("FamilyIssuesQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Family Issues"',children:[f(),v(),y(),h(),g()]}),$("GuardianshipQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Guardianship"',children:[f(),v(),y(),h(),g()]}),$("DivorceQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',children:[f(),v(),y(),h(),g()]}),$("NotSureOrOtherQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',children:[f(),h("No payment necessary to speak with lawyers.")]})],e.nextOnEnter)}(),function(e={}){return C("comments",[m({placeholder:e.placeholder||'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"'})],e.nextOnEnter)}({placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"',nextOnEnter:!1}),function(e={}){return C("firstAndLast",[u({$formkit:"text",label:"First Name:",name:"First_Name",validationMessages:{required:"First Name is required"}}),u({$formkit:"text",label:"Last Name:",name:"Last_Name",validationMessages:{required:"Last Name is required"}})],e.nextOnEnter)}(),function(e={}){return C("contactInfo",[{$el:"h3",children:e.headline||"Based on your input, you may benefit from speaking with a legal professional. Please verify your contact information.",attrs:{class:"t-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-px-3"}},u({$formkit:"email",name:"Email",label:"Email Address:",placeholder:"email@domain.com",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"}}),u({$formkit:"tel",name:"Primary_Phone",label:"Phone Number:",placeholder:"xxx-xxx-xxxx",maxlength:12,help:"10-digit phone number, hyphens optional",validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/",validationMessages:{required:"Field is required",matches:"Invalid Phone Number, use xxx-xxx-xxxx format"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]"}),{$formkit:"checkbox",label:"$meta.tcpaLanguage",name:"TCPA_Opt_In",validation:"required|accepted",validationMessages:{required:"Consent is required",accepted:"Consent is required"},classes:{label:"t-text-xs t-text-slate-500 t-font-normal"}},s()],e.nextOnEnter)}({headline:"Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:",nextOnEnter:!1}),{$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",onClick:"$setPreviousStep()",children:"Back",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"button",onClick:"$setNextStep($fireStepEvent($get(form)))",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:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var w;return _}();
@@ -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."}},{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-20px","left":0}}}],"attrs":{"class":"t-relative"}},{"$cmp":"FormKit","props":{"type":"form","id":"form","onSubmit":"$submit($submitUrl, $prepData, $getRedirect)","plugins":"$plugins","actions":false,"prepop":{"fromURL":true},"errorCodes":{"403":"An Error Occurred","409":{"abort":false},"429":"An Error Occurred"},"formClass":"!t-max-w-[38rem]","formId":"childAndFamily","redirectMap":{"properties.Type_Of_Legal_Problem":{"Adoption":"https://justanswer.9pctbx.net/c/2880795/565949/9320?sharedid=${properties.vid}","Child Custody and Support":"https://justanswer.9pctbx.net/c/2880795/565949/9320?sharedid=${properties.vid}","Divorce and Separation":"https://justanswer.9pctbx.net/c/2880795/966410/9320?sharedid=${properties.vid}","Guardianship":"https://justanswer.9pctbx.net/c/2880795/565949/9320?sharedid=${properties.vid}"},"*":"https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${properties.vid}"},"anchorElement":"form-anchor"},"children":[{"$el":"h1","attrs":{"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"},"children":"Get Child & Family Help Today","if":"$activeStep === $firstStep()"},{"$el":"h3","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-base t-font-medium t-text-blue-500 t-px-10"},"children":"Contact Us Now for Child Support, Custody and Family Issues","if":"$activeStep === $firstStep()"},{"$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":"md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125","legendClass":"legend-left-flex md:t-max-w-[40%] required","label":"Type of Help Needed:","name":"Type_Of_Legal_Problem","id":"Type_Of_Legal_Problem","options":["Adoption","Child Custody and Support","Family Issues","Guardianship","Divorce and Separation","Not Sure or Other"],"fieldsetClass":"$reset side-by-side-flex","innerClass":"t-flex t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-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","maxlength":5,"inputmode":"numeric","wrapperClass":"side-by-side t-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":"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"}},{"$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":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Children","label":"Do You Have Children?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$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":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"Your Relationship to Child(ren):","name":"Child_Relationship","options":["Father","Mother","Grandparent","Aunt/Uncle","Other"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"With Whom Do the Children Currently Live?","name":"Child_Home","options":["Mother","Father","Grandparents","Other"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"Who is the Primary Caregiver?","name":"Child_Primary_Caregiver","options":["Mother","Father","Other"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$cmp":"FormKit","props":{"type":"group","key":"FamilyIssuesQuestions","id":"FamilyIssuesQuestions","name":"FamilyIssuesQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Family Issues\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Children","label":"Do You Have Children?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$cmp":"FormKit","props":{"type":"group","key":"GuardianshipQuestions","id":"GuardianshipQuestions","name":"GuardianshipQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Guardianship\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Children","label":"Do You Have Children?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$cmp":"FormKit","props":{"type":"group","key":"DivorceQuestions","id":"DivorceQuestions","name":"DivorceQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Divorce and Separation\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Children","label":"Do You Have Children?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$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":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","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"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]}]}]},{"$el":"section","if":"$stepIsEnabled(\"comments\")","attrs":{"style":{"if":"$activeStep !== \"comments\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"comments","name":"comments","children":[{"$formkit":"textarea","rows":7,"maxlength":1000,"validation":"required","validationMessages":{"required":"Field is required"},"labelClass":"required","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\""}],"placeholder":"For Example: \"I would like help with child support payments\" or \"I need help with visitation rights\""}]},{"$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 t-items-center"},{"$formkit":"text","validation":"required","validationMessages":{"required":"Last Name is required"},"labelClass":"required","label":"Last Name:","name":"Last_Name","wrapperClass":"side-by-side t-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":"t-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-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 t-items-center"},{"$formkit":"tel","validation":"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/","validationMessages":{"required":"Field is required","matches":"Invalid Phone Number, use xxx-xxx-xxxx format"},"labelClass":"required","name":"Primary_Phone","label":"Phone Number:","placeholder":"xxx-xxx-xxxx","maxlength":12,"help":"10-digit phone number, hyphens optional","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-2px]","wrapperClass":"side-by-side t-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":"t-text-xs t-text-slate-500 t-font-normal"}},{"$el":"div","if":"$activeStep === $lastStep()","attrs":{"class":"t-flex t-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"}}]}],"headline":"Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:"}]},{"$el":"div","attrs":{"class":"step-nav"},"children":[{"$formkit":"button","onClick":"$setPreviousStep()","children":"Back","style":{"if":"$activeStep === $firstStep()","then":"visibility: hidden;"}},{"$formkit":"button","onClick":"$setNextStep($fireStepEvent($get(form)))","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":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"t-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."}},{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-30px","left":0}}}],"attrs":{"class":"t-relative"}},{"$cmp":"FormKit","props":{"type":"form","id":"form","onSubmit":"$submit($submitUrl, $prepData, $getRedirect)","plugins":"$plugins","actions":false,"prepop":{"fromURL":true},"errorCodes":{"403":"An Error Occurred","409":{"abort":false},"429":"An Error Occurred"},"formClass":"!t-max-w-[38rem]","formId":"childAndFamily","redirectMap":{"properties.Type_Of_Legal_Problem":{"Adoption":"https://justanswer.9pctbx.net/c/2880795/565949/9320?sharedid=${properties.vid}","Child Custody and Support":"https://justanswer.9pctbx.net/c/2880795/565949/9320?sharedid=${properties.vid}","Divorce and Separation":"https://justanswer.9pctbx.net/c/2880795/966410/9320?sharedid=${properties.vid}","Guardianship":"https://justanswer.9pctbx.net/c/2880795/565949/9320?sharedid=${properties.vid}"},"*":"https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${properties.vid}"},"anchorElement":"form-anchor"},"children":[{"$el":"h1","attrs":{"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"},"children":"Get Child & Family Help Today","if":"$activeStep === $firstStep()"},{"$el":"h3","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-base t-font-medium t-text-blue-500 t-px-10"},"children":"Contact Us Now for Child Support, Custody and Family Issues","if":"$activeStep === $firstStep()"},{"$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":"md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125","legendClass":"legend-left-flex md:t-max-w-[40%] required","label":"Type of Help Needed:","name":"Type_Of_Legal_Problem","id":"Type_Of_Legal_Problem","options":["Adoption","Child Custody and Support","Family Issues","Guardianship","Divorce and Separation","Not Sure or Other"],"fieldsetClass":"$reset side-by-side-flex","innerClass":"t-flex t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-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","maxlength":5,"inputmode":"numeric","wrapperClass":"side-by-side t-items-center","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form))))"}]}]},{"$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":"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"}},{"$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":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Children","label":"Do You Have Children?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$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":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"Your Relationship to Child(ren):","name":"Child_Relationship","options":["Father","Mother","Grandparent","Aunt/Uncle","Other"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"With Whom Do the Children Currently Live?","name":"Child_Home","options":["Mother","Father","Grandparents","Other"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"Who is the Primary Caregiver?","name":"Child_Primary_Caregiver","options":["Mother","Father","Other"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$cmp":"FormKit","props":{"type":"group","key":"FamilyIssuesQuestions","id":"FamilyIssuesQuestions","name":"FamilyIssuesQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Family Issues\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Children","label":"Do You Have Children?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$cmp":"FormKit","props":{"type":"group","key":"GuardianshipQuestions","id":"GuardianshipQuestions","name":"GuardianshipQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Guardianship\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Children","label":"Do You Have Children?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$cmp":"FormKit","props":{"type":"group","key":"DivorceQuestions","id":"DivorceQuestions","name":"DivorceQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Divorce and Separation\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Children","label":"Do You Have Children?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-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 t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$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":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Are You Currently Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","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"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form))))"}]}]}]},{"$el":"section","if":"$stepIsEnabled(\"comments\")","attrs":{"style":{"if":"$activeStep !== \"comments\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"comments","name":"comments","children":[{"$formkit":"textarea","rows":7,"maxlength":1000,"validation":"required","validationMessages":{"required":"Field is required"},"labelClass":"required","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\""}]}]},{"$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 t-items-center"},{"$formkit":"text","validation":"required","validationMessages":{"required":"Last Name is required"},"labelClass":"required","label":"Last Name:","name":"Last_Name","wrapperClass":"side-by-side t-items-center","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form))))"}]}]},{"$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":"t-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-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 t-items-center"},{"$formkit":"tel","validation":"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/","validationMessages":{"required":"Field is required","matches":"Invalid Phone Number, use xxx-xxx-xxxx format"},"labelClass":"required","name":"Primary_Phone","label":"Phone Number:","placeholder":"xxx-xxx-xxxx","maxlength":12,"help":"10-digit phone number, hyphens optional","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-2px]","wrapperClass":"side-by-side t-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":"t-text-xs t-text-slate-500 t-font-normal"}},{"$el":"div","if":"$activeStep === $lastStep()","attrs":{"class":"t-flex t-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($fireStepEvent($get(form)))","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":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}}]}]}]}]
@@ -54,7 +54,7 @@ const formAnchorDefaults = {
54
54
  attrs: {
55
55
  id: "form-anchor",
56
56
  class: 't-absolute',
57
- style: { top: '-20px', left: 0 }
57
+ style: { top: '-30px', left: 0 }
58
58
  }
59
59
  }
60
60
  ],
@@ -2202,6 +2202,27 @@ const NotSureOrOtherQuestions = () => group(
2202
2202
  }
2203
2203
  );
2204
2204
 
2205
+ const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form))))';
2206
+
2207
+ const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
2208
+
2209
+ const findLastInput = (n) => {
2210
+ if (isInput(n)) {
2211
+ return n
2212
+ }
2213
+ for (var i = n.children.length - 1; i >= 0; i--) {
2214
+ const child = n.children[i];
2215
+ if (isInput(child)) {
2216
+ return child
2217
+ }
2218
+ const res = findLastInput(child);
2219
+ if (res) {
2220
+ return res
2221
+ }
2222
+ }
2223
+ return null
2224
+ };
2225
+
2205
2226
  const stepDefaults = (step) => ({
2206
2227
  $el: 'section',
2207
2228
  if: '$stepIsEnabled("' + step + '")',
@@ -2213,33 +2234,39 @@ const stepDefaults = (step) => ({
2213
2234
  }
2214
2235
  });
2215
2236
 
2216
- // ...args get merged onto the group since the 'section' node basically
2217
- // disappears in the formkit hierarchy
2218
- function step(name, inputs, ...args) {
2237
+ function step(name, inputs, nextOnEnter = true) {
2238
+ if (typeof nextOnEnter === 'undefined') {
2239
+ nextOnEnter = true;
2240
+ }
2241
+ if (inputs && inputs.length && nextOnEnter) {
2242
+ const lastInput = findLastInput(inputs[inputs.length - 1]);
2243
+ lastInput.onKeypress = NEXT_ON_ENTER;
2244
+ }
2245
+
2219
2246
  return merge(
2220
2247
  stepDefaults(name),
2221
2248
  {
2222
2249
  children: [
2223
- merge({
2250
+ {
2224
2251
  $formkit: 'group',
2225
2252
  id: name,
2226
2253
  name: name,
2227
2254
  children: inputs
2228
- }, ...args)
2255
+ }
2229
2256
  ]
2230
2257
  }
2231
2258
  )
2232
2259
  }
2233
2260
 
2234
2261
 
2235
- function generalLegalTOLPAndZip() {
2262
+ function generalLegalTOLPAndZip(updates = {}) {
2236
2263
  return step(
2237
2264
  'generalLegalTOLPAndZip',
2238
2265
  [
2239
2266
  generalTOLP(),
2240
2267
  zipcode()
2241
2268
  ],
2242
- ...arguments
2269
+ updates.nextOnEnter
2243
2270
  )
2244
2271
  }
2245
2272
 
@@ -2253,7 +2280,7 @@ function comments(updates = {}) {
2253
2280
  placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER
2254
2281
  })
2255
2282
  ],
2256
- ...arguments
2283
+ updates.nextOnEnter
2257
2284
  )
2258
2285
  }
2259
2286
 
@@ -2275,22 +2302,22 @@ function contactInfo(updates = {}) {
2275
2302
  TCPAConsent(),
2276
2303
  privacyIcons()
2277
2304
  ],
2278
- ...arguments
2305
+ updates.nextOnEnter
2279
2306
  )
2280
2307
  }
2281
2308
 
2282
- function firstAndLast() {
2309
+ function firstAndLast(updates = {}) {
2283
2310
  return step(
2284
2311
  'firstAndLast',
2285
2312
  [
2286
2313
  firstName(),
2287
2314
  lastName()
2288
2315
  ],
2289
- ...arguments
2316
+ updates.nextOnEnter
2290
2317
  )
2291
2318
  }
2292
2319
 
2293
- function generalLegalTOLPQuestions() {
2320
+ function generalLegalTOLPQuestions(updates = {}) {
2294
2321
  return step(
2295
2322
  'TOLPQuestions',
2296
2323
  [
@@ -2351,7 +2378,7 @@ function generalLegalTOLPQuestions() {
2351
2378
  WrongfulTerminationQuestions(),
2352
2379
  NotSureOrOtherQuestions()
2353
2380
  ],
2354
- ...arguments
2381
+ updates.nextOnEnter
2355
2382
  )
2356
2383
  }
2357
2384
 
@@ -2461,9 +2488,13 @@ const schema = [
2461
2488
  children: [
2462
2489
  generalLegalTOLPAndZip(),
2463
2490
  generalLegalTOLPQuestions(),
2464
- comments(),
2491
+ comments({
2492
+ nextOnEnter: false
2493
+ }),
2465
2494
  firstAndLast(),
2466
- contactInfo(),
2495
+ contactInfo({
2496
+ nextOnEnter: false
2497
+ }),
2467
2498
  formNavigation(),
2468
2499
  formDetails()
2469
2500
  ]