bhl-forms 0.0.45 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bhl-forms.es.js +41 -7
- package/dist/bhl-forms.iife.js +6 -6
- package/dist/bhl-forms.modern.es.js +41 -7
- package/dist/bhl-forms.modern.iife.js +9 -9
- package/dist/bhl-forms.modern.umd.js +9 -9
- package/dist/bhl-forms.umd.js +6 -6
- package/dist/forms/childAndFamily.es.js +52 -22
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/generalLegal.es.js +54 -22
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/testForm.es.js +43 -15
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +3 -2
|
@@ -54,7 +54,7 @@ const formAnchorDefaults = {
|
|
|
54
54
|
attrs: {
|
|
55
55
|
id: "form-anchor",
|
|
56
56
|
class: 't-absolute',
|
|
57
|
-
style: { top: '-
|
|
57
|
+
style: { top: '-30px', left: 0 }
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
],
|
|
@@ -170,7 +170,7 @@ const radio = (updates) => {
|
|
|
170
170
|
const sbs2ColRadio = (updates) => {
|
|
171
171
|
updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
|
|
172
172
|
updates.fieldsetClass = '$reset side-by-side-flex';
|
|
173
|
-
updates.optionsClass = 'md:t-ml-4 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
|
|
173
|
+
updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
|
|
174
174
|
updates.innerClass = 't-flex t-items-start';
|
|
175
175
|
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
176
176
|
return radio(updates)
|
|
@@ -381,12 +381,13 @@ const phone = () => sbsText({
|
|
|
381
381
|
label: 'Phone Number:',
|
|
382
382
|
placeholder: 'xxx-xxx-xxxx',
|
|
383
383
|
maxlength: 12,
|
|
384
|
-
|
|
384
|
+
help: '10-digit phone number, hyphens optional',
|
|
385
385
|
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
|
|
386
386
|
validationMessages: {
|
|
387
|
-
required: '
|
|
388
|
-
matches: 'Invalid Phone Number'
|
|
389
|
-
}
|
|
387
|
+
required: 'Field is required',
|
|
388
|
+
matches: 'Invalid Phone Number, use xxx-xxx-xxxx format'
|
|
389
|
+
},
|
|
390
|
+
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
390
391
|
});
|
|
391
392
|
|
|
392
393
|
const TCPAConsent = () => ({
|
|
@@ -514,6 +515,27 @@ const NotSureOrOtherQuestions = () => group(
|
|
|
514
515
|
}
|
|
515
516
|
);
|
|
516
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
|
+
|
|
517
539
|
const stepDefaults = (step) => ({
|
|
518
540
|
$el: 'section',
|
|
519
541
|
if: '$stepIsEnabled("' + step + '")',
|
|
@@ -525,32 +547,38 @@ const stepDefaults = (step) => ({
|
|
|
525
547
|
}
|
|
526
548
|
});
|
|
527
549
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
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
|
+
|
|
531
559
|
return merge(
|
|
532
560
|
stepDefaults(name),
|
|
533
561
|
{
|
|
534
562
|
children: [
|
|
535
|
-
|
|
563
|
+
{
|
|
536
564
|
$formkit: 'group',
|
|
537
565
|
id: name,
|
|
538
566
|
name: name,
|
|
539
567
|
children: inputs
|
|
540
|
-
}
|
|
568
|
+
}
|
|
541
569
|
]
|
|
542
570
|
}
|
|
543
571
|
)
|
|
544
572
|
}
|
|
545
573
|
|
|
546
|
-
function childAndFamilyTOLPAndZip() {
|
|
574
|
+
function childAndFamilyTOLPAndZip(updates = {}) {
|
|
547
575
|
return step(
|
|
548
576
|
'childAndFamilyTOLPAndZip',
|
|
549
577
|
[
|
|
550
578
|
childAndFamilyTOLP(),
|
|
551
579
|
zipcode()
|
|
552
580
|
],
|
|
553
|
-
|
|
581
|
+
updates.nextOnEnter
|
|
554
582
|
)
|
|
555
583
|
}
|
|
556
584
|
|
|
@@ -564,7 +592,7 @@ function comments(updates = {}) {
|
|
|
564
592
|
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER
|
|
565
593
|
})
|
|
566
594
|
],
|
|
567
|
-
|
|
595
|
+
updates.nextOnEnter
|
|
568
596
|
)
|
|
569
597
|
}
|
|
570
598
|
|
|
@@ -586,22 +614,22 @@ function contactInfo(updates = {}) {
|
|
|
586
614
|
TCPAConsent(),
|
|
587
615
|
privacyIcons()
|
|
588
616
|
],
|
|
589
|
-
|
|
617
|
+
updates.nextOnEnter
|
|
590
618
|
)
|
|
591
619
|
}
|
|
592
620
|
|
|
593
|
-
function firstAndLast() {
|
|
621
|
+
function firstAndLast(updates = {}) {
|
|
594
622
|
return step(
|
|
595
623
|
'firstAndLast',
|
|
596
624
|
[
|
|
597
625
|
firstName(),
|
|
598
626
|
lastName()
|
|
599
627
|
],
|
|
600
|
-
|
|
628
|
+
updates.nextOnEnter
|
|
601
629
|
)
|
|
602
630
|
}
|
|
603
631
|
|
|
604
|
-
function childAndFamilyTOLPQuestions() {
|
|
632
|
+
function childAndFamilyTOLPQuestions(updates = {}) {
|
|
605
633
|
return step(
|
|
606
634
|
'TOLPQuestions',
|
|
607
635
|
[
|
|
@@ -619,7 +647,7 @@ function childAndFamilyTOLPQuestions() {
|
|
|
619
647
|
DivorceQuestions(),
|
|
620
648
|
NotSureOrOtherQuestions()
|
|
621
649
|
],
|
|
622
|
-
|
|
650
|
+
updates.nextOnEnter
|
|
623
651
|
)
|
|
624
652
|
}
|
|
625
653
|
|
|
@@ -633,7 +661,7 @@ const formNavigation = () => ({
|
|
|
633
661
|
children: [
|
|
634
662
|
{
|
|
635
663
|
$formkit: 'button',
|
|
636
|
-
onClick: '$setPreviousStep()',
|
|
664
|
+
onClick: '$setPreviousStep($scrollAnchor($get(form)))',
|
|
637
665
|
children: 'Back',
|
|
638
666
|
style: {
|
|
639
667
|
if: '$activeStep === $firstStep()',
|
|
@@ -738,11 +766,13 @@ const schema = [
|
|
|
738
766
|
childAndFamilyTOLPAndZip(),
|
|
739
767
|
childAndFamilyTOLPQuestions(),
|
|
740
768
|
comments({
|
|
741
|
-
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
|
|
742
771
|
}),
|
|
743
772
|
firstAndLast(),
|
|
744
773
|
contactInfo({
|
|
745
|
-
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
|
|
746
776
|
}),
|
|
747
777
|
formNavigation(),
|
|
748
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 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,validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/",validationMessages:{required:"Phone Number is required",matches:"Invalid Phone Number"}}),_=()=>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 N=[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."}},T),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 T;return N}();
|
|
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($scrollAnchor($get(form)))",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 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":"Phone Number is required","matches":"Invalid Phone Number"},"labelClass":"required","name":"Primary_Phone","label":"Phone Number:","placeholder":"xxx-xxx-xxxx","maxlength":12,"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($scrollAnchor($get(form)))","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: '-
|
|
57
|
+
style: { top: '-30px', left: 0 }
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
],
|
|
@@ -252,7 +252,7 @@ const sbsRadio = (updates) => {
|
|
|
252
252
|
const sbs2ColRadio = (updates) => {
|
|
253
253
|
updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
|
|
254
254
|
updates.fieldsetClass = '$reset side-by-side-flex';
|
|
255
|
-
updates.optionsClass = 'md:t-ml-4 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
|
|
255
|
+
updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
|
|
256
256
|
updates.innerClass = 't-flex t-items-start';
|
|
257
257
|
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
258
258
|
return radio(updates)
|
|
@@ -1217,12 +1217,13 @@ const phone = () => sbsText({
|
|
|
1217
1217
|
label: 'Phone Number:',
|
|
1218
1218
|
placeholder: 'xxx-xxx-xxxx',
|
|
1219
1219
|
maxlength: 12,
|
|
1220
|
-
|
|
1220
|
+
help: '10-digit phone number, hyphens optional',
|
|
1221
1221
|
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
|
|
1222
1222
|
validationMessages: {
|
|
1223
|
-
required: '
|
|
1224
|
-
matches: 'Invalid Phone Number'
|
|
1225
|
-
}
|
|
1223
|
+
required: 'Field is required',
|
|
1224
|
+
matches: 'Invalid Phone Number, use xxx-xxx-xxxx format'
|
|
1225
|
+
},
|
|
1226
|
+
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
1226
1227
|
});
|
|
1227
1228
|
|
|
1228
1229
|
const primaryInjury = () => sbs2ColRadio({
|
|
@@ -2201,6 +2202,27 @@ const NotSureOrOtherQuestions = () => group(
|
|
|
2201
2202
|
}
|
|
2202
2203
|
);
|
|
2203
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
|
+
|
|
2204
2226
|
const stepDefaults = (step) => ({
|
|
2205
2227
|
$el: 'section',
|
|
2206
2228
|
if: '$stepIsEnabled("' + step + '")',
|
|
@@ -2212,33 +2234,39 @@ const stepDefaults = (step) => ({
|
|
|
2212
2234
|
}
|
|
2213
2235
|
});
|
|
2214
2236
|
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
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
|
+
|
|
2218
2246
|
return merge(
|
|
2219
2247
|
stepDefaults(name),
|
|
2220
2248
|
{
|
|
2221
2249
|
children: [
|
|
2222
|
-
|
|
2250
|
+
{
|
|
2223
2251
|
$formkit: 'group',
|
|
2224
2252
|
id: name,
|
|
2225
2253
|
name: name,
|
|
2226
2254
|
children: inputs
|
|
2227
|
-
}
|
|
2255
|
+
}
|
|
2228
2256
|
]
|
|
2229
2257
|
}
|
|
2230
2258
|
)
|
|
2231
2259
|
}
|
|
2232
2260
|
|
|
2233
2261
|
|
|
2234
|
-
function generalLegalTOLPAndZip() {
|
|
2262
|
+
function generalLegalTOLPAndZip(updates = {}) {
|
|
2235
2263
|
return step(
|
|
2236
2264
|
'generalLegalTOLPAndZip',
|
|
2237
2265
|
[
|
|
2238
2266
|
generalTOLP(),
|
|
2239
2267
|
zipcode()
|
|
2240
2268
|
],
|
|
2241
|
-
|
|
2269
|
+
updates.nextOnEnter
|
|
2242
2270
|
)
|
|
2243
2271
|
}
|
|
2244
2272
|
|
|
@@ -2252,7 +2280,7 @@ function comments(updates = {}) {
|
|
|
2252
2280
|
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER
|
|
2253
2281
|
})
|
|
2254
2282
|
],
|
|
2255
|
-
|
|
2283
|
+
updates.nextOnEnter
|
|
2256
2284
|
)
|
|
2257
2285
|
}
|
|
2258
2286
|
|
|
@@ -2274,22 +2302,22 @@ function contactInfo(updates = {}) {
|
|
|
2274
2302
|
TCPAConsent(),
|
|
2275
2303
|
privacyIcons()
|
|
2276
2304
|
],
|
|
2277
|
-
|
|
2305
|
+
updates.nextOnEnter
|
|
2278
2306
|
)
|
|
2279
2307
|
}
|
|
2280
2308
|
|
|
2281
|
-
function firstAndLast() {
|
|
2309
|
+
function firstAndLast(updates = {}) {
|
|
2282
2310
|
return step(
|
|
2283
2311
|
'firstAndLast',
|
|
2284
2312
|
[
|
|
2285
2313
|
firstName(),
|
|
2286
2314
|
lastName()
|
|
2287
2315
|
],
|
|
2288
|
-
|
|
2316
|
+
updates.nextOnEnter
|
|
2289
2317
|
)
|
|
2290
2318
|
}
|
|
2291
2319
|
|
|
2292
|
-
function generalLegalTOLPQuestions() {
|
|
2320
|
+
function generalLegalTOLPQuestions(updates = {}) {
|
|
2293
2321
|
return step(
|
|
2294
2322
|
'TOLPQuestions',
|
|
2295
2323
|
[
|
|
@@ -2350,7 +2378,7 @@ function generalLegalTOLPQuestions() {
|
|
|
2350
2378
|
WrongfulTerminationQuestions(),
|
|
2351
2379
|
NotSureOrOtherQuestions()
|
|
2352
2380
|
],
|
|
2353
|
-
|
|
2381
|
+
updates.nextOnEnter
|
|
2354
2382
|
)
|
|
2355
2383
|
}
|
|
2356
2384
|
|
|
@@ -2364,7 +2392,7 @@ const formNavigation = () => ({
|
|
|
2364
2392
|
children: [
|
|
2365
2393
|
{
|
|
2366
2394
|
$formkit: 'button',
|
|
2367
|
-
onClick: '$setPreviousStep()',
|
|
2395
|
+
onClick: '$setPreviousStep($scrollAnchor($get(form)))',
|
|
2368
2396
|
children: 'Back',
|
|
2369
2397
|
style: {
|
|
2370
2398
|
if: '$activeStep === $firstStep()',
|
|
@@ -2460,9 +2488,13 @@ const schema = [
|
|
|
2460
2488
|
children: [
|
|
2461
2489
|
generalLegalTOLPAndZip(),
|
|
2462
2490
|
generalLegalTOLPQuestions(),
|
|
2463
|
-
comments(
|
|
2491
|
+
comments({
|
|
2492
|
+
nextOnEnter: false
|
|
2493
|
+
}),
|
|
2464
2494
|
firstAndLast(),
|
|
2465
|
-
contactInfo(
|
|
2495
|
+
contactInfo({
|
|
2496
|
+
nextOnEnter: false
|
|
2497
|
+
}),
|
|
2466
2498
|
formNavigation(),
|
|
2467
2499
|
formDetails()
|
|
2468
2500
|
]
|