[{"data":1,"prerenderedAt":1213},["Reactive",2],{"content-query-9Jj7e6Axes":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"_empty":6,"title":8,"description":9,"body":10,"_type":1208,"_id":1209,"_source":1210,"_file":1211,"_extension":1212},"/docs/forms/validation/state","validation",false,"","Form Validation - State - Inkline","The form validation schema defines state of the form fields, groups, validation rules, and how they work together.",{"type":11,"children":12,"toc":1202},"root",[13,20,27,79,91,150,282,289,300,720,727,732,743,880,899,910,916,935,1197],{"type":14,"tag":15,"props":16,"children":19},"element","content-heading",{"subtitle":17,"title":18},"Form Validation","Validation State",[],{"type":14,"tag":21,"props":22,"children":24},"h2",{"id":23},"the-form-validation-schema-defines-state-of-the-form-fields-groups-validation-rules-and-how-they-work-together",[25],{"type":26,"value":9},"text",{"type":14,"tag":28,"props":29,"children":30},"p",{},[31,33,39,41,46,47,52,53,58,59,64,65,70,72,77],{"type":26,"value":32},"After initialization, each field, group, and the root form contain form validation state fields ",{"type":14,"tag":34,"props":35,"children":36},"code-inline",{},[37],{"type":26,"value":38},"valid",{"type":26,"value":40},", ",{"type":14,"tag":34,"props":42,"children":43},{},[44],{"type":26,"value":45},"invalid",{"type":26,"value":40},{"type":14,"tag":34,"props":48,"children":49},{},[50],{"type":26,"value":51},"touched",{"type":26,"value":40},{"type":14,"tag":34,"props":54,"children":55},{},[56],{"type":26,"value":57},"untouched",{"type":26,"value":40},{"type":14,"tag":34,"props":60,"children":61},{},[62],{"type":26,"value":63},"dirty",{"type":26,"value":40},{"type":14,"tag":34,"props":66,"children":67},{},[68],{"type":26,"value":69},"pristine",{"type":26,"value":71}," and ",{"type":14,"tag":34,"props":73,"children":74},{},[75],{"type":26,"value":76},"errors",{"type":26,"value":78},".",{"type":14,"tag":28,"props":80,"children":81},{},[82,84,89],{"type":26,"value":83},"These schema fields will be set to ",{"type":14,"tag":34,"props":85,"children":86},{},[87],{"type":26,"value":88},"true",{"type":26,"value":90}," when:",{"type":14,"tag":92,"props":93,"children":94},"ul",{},[95,105,114,123,132,141],{"type":14,"tag":96,"props":97,"children":98},"li",{},[99,103],{"type":14,"tag":34,"props":100,"children":101},{},[102],{"type":26,"value":38},{"type":26,"value":104}," - the input value is correct",{"type":14,"tag":96,"props":106,"children":107},{},[108,112],{"type":14,"tag":34,"props":109,"children":110},{},[111],{"type":26,"value":45},{"type":26,"value":113}," - the input value is not correct",{"type":14,"tag":96,"props":115,"children":116},{},[117,121],{"type":14,"tag":34,"props":118,"children":119},{},[120],{"type":26,"value":51},{"type":26,"value":122}," - the input has been touched and blurred",{"type":14,"tag":96,"props":124,"children":125},{},[126,130],{"type":14,"tag":34,"props":127,"children":128},{},[129],{"type":26,"value":57},{"type":26,"value":131}," - the input has not been touched",{"type":14,"tag":96,"props":133,"children":134},{},[135,139],{"type":14,"tag":34,"props":136,"children":137},{},[138],{"type":26,"value":63},{"type":26,"value":140}," - the input value has been changed",{"type":14,"tag":96,"props":142,"children":143},{},[144,148],{"type":14,"tag":34,"props":145,"children":146},{},[147],{"type":26,"value":69},{"type":26,"value":149}," - the input value has not been changed",{"type":14,"tag":151,"props":152,"children":157},"code",{"className":153,"code":155,"language":156,"meta":7},[154],"language-ts","const { schema } = useForm\u003C{ field: string }>({\n    field: {\n        value: ''\n    }\n});\n","ts",[158],{"type":14,"tag":159,"props":160,"children":161},"pre",{},[162],{"type":14,"tag":151,"props":163,"children":164},{"__ignoreMap":7},[165,240,249,264,273],{"type":14,"tag":166,"props":167,"children":170},"span",{"class":168,"line":169},"line",1,[171,177,183,189,194,199,204,210,215,221,226,230,235],{"type":14,"tag":166,"props":172,"children":174},{"class":173},"ct-149352",[175],{"type":26,"value":176},"const",{"type":14,"tag":166,"props":178,"children":180},{"class":179},"ct-553616",[181],{"type":26,"value":182}," { ",{"type":14,"tag":166,"props":184,"children":186},{"class":185},"ct-617022",[187],{"type":26,"value":188},"schema",{"type":14,"tag":166,"props":190,"children":191},{"class":179},[192],{"type":26,"value":193}," } ",{"type":14,"tag":166,"props":195,"children":196},{"class":173},[197],{"type":26,"value":198},"=",{"type":14,"tag":166,"props":200,"children":201},{"class":179},[202],{"type":26,"value":203}," ",{"type":14,"tag":166,"props":205,"children":207},{"class":206},"ct-762058",[208],{"type":26,"value":209},"useForm",{"type":14,"tag":166,"props":211,"children":212},{"class":179},[213],{"type":26,"value":214},"\u003C{ ",{"type":14,"tag":166,"props":216,"children":218},{"class":217},"ct-157101",[219],{"type":26,"value":220},"field",{"type":14,"tag":166,"props":222,"children":223},{"class":173},[224],{"type":26,"value":225},":",{"type":14,"tag":166,"props":227,"children":228},{"class":179},[229],{"type":26,"value":203},{"type":14,"tag":166,"props":231,"children":232},{"class":185},[233],{"type":26,"value":234},"string",{"type":14,"tag":166,"props":236,"children":237},{"class":179},[238],{"type":26,"value":239}," }>({\n",{"type":14,"tag":166,"props":241,"children":243},{"class":168,"line":242},2,[244],{"type":14,"tag":166,"props":245,"children":246},{"class":179},[247],{"type":26,"value":248},"    field: {\n",{"type":14,"tag":166,"props":250,"children":252},{"class":168,"line":251},3,[253,258],{"type":14,"tag":166,"props":254,"children":255},{"class":179},[256],{"type":26,"value":257},"        value: ",{"type":14,"tag":166,"props":259,"children":261},{"class":260},"ct-952708",[262],{"type":26,"value":263},"''\n",{"type":14,"tag":166,"props":265,"children":267},{"class":168,"line":266},4,[268],{"type":14,"tag":166,"props":269,"children":270},{"class":179},[271],{"type":26,"value":272},"    }\n",{"type":14,"tag":166,"props":274,"children":276},{"class":168,"line":275},5,[277],{"type":14,"tag":166,"props":278,"children":279},{"class":179},[280],{"type":26,"value":281},"});",{"type":14,"tag":283,"props":284,"children":286},"h5",{"id":285},"resolved-schema",[287],{"type":26,"value":288},"Resolved Schema",{"type":14,"tag":28,"props":290,"children":291},{},[292,294,298],{"type":26,"value":293},"The resolved ",{"type":14,"tag":34,"props":295,"children":296},{},[297],{"type":26,"value":188},{"type":26,"value":299}," object looks as follows:",{"type":14,"tag":151,"props":301,"children":304},{"className":302,"code":303,"language":156,"meta":7},[154],"{\n    field: {\n        value: '',\n        valid: true,\n        invalid: false,\n        touched: false,\n        untouched: true,\n        dirty: false,\n        pristine: true,\n        errors: [],\n        validators: []\n    },\n    valid: true,\n    invalid: false,\n    touched: false,\n    untouched: true,\n    dirty: false,\n    pristine: true,\n    errors: []\n}\n",[305],{"type":14,"tag":159,"props":306,"children":307},{},[308],{"type":14,"tag":151,"props":309,"children":310},{"__ignoreMap":7},[311,319,336,364,387,411,435,459,483,507,524,542,551,575,599,623,647,671,695,711],{"type":14,"tag":166,"props":312,"children":313},{"class":168,"line":169},[314],{"type":14,"tag":166,"props":315,"children":316},{"class":179},[317],{"type":26,"value":318},"{\n",{"type":14,"tag":166,"props":320,"children":321},{"class":168,"line":242},[322,327,331],{"type":14,"tag":166,"props":323,"children":324},{"class":179},[325],{"type":26,"value":326},"    ",{"type":14,"tag":166,"props":328,"children":329},{"class":206},[330],{"type":26,"value":220},{"type":14,"tag":166,"props":332,"children":333},{"class":179},[334],{"type":26,"value":335},": {\n",{"type":14,"tag":166,"props":337,"children":338},{"class":168,"line":251},[339,344,349,354,359],{"type":14,"tag":166,"props":340,"children":341},{"class":179},[342],{"type":26,"value":343},"        ",{"type":14,"tag":166,"props":345,"children":346},{"class":206},[347],{"type":26,"value":348},"value",{"type":14,"tag":166,"props":350,"children":351},{"class":179},[352],{"type":26,"value":353},": ",{"type":14,"tag":166,"props":355,"children":356},{"class":260},[357],{"type":26,"value":358},"''",{"type":14,"tag":166,"props":360,"children":361},{"class":179},[362],{"type":26,"value":363},",\n",{"type":14,"tag":166,"props":365,"children":366},{"class":168,"line":266},[367,371,375,379,383],{"type":14,"tag":166,"props":368,"children":369},{"class":179},[370],{"type":26,"value":343},{"type":14,"tag":166,"props":372,"children":373},{"class":206},[374],{"type":26,"value":38},{"type":14,"tag":166,"props":376,"children":377},{"class":179},[378],{"type":26,"value":353},{"type":14,"tag":166,"props":380,"children":381},{"class":185},[382],{"type":26,"value":88},{"type":14,"tag":166,"props":384,"children":385},{"class":179},[386],{"type":26,"value":363},{"type":14,"tag":166,"props":388,"children":389},{"class":168,"line":275},[390,394,398,402,407],{"type":14,"tag":166,"props":391,"children":392},{"class":179},[393],{"type":26,"value":343},{"type":14,"tag":166,"props":395,"children":396},{"class":206},[397],{"type":26,"value":45},{"type":14,"tag":166,"props":399,"children":400},{"class":179},[401],{"type":26,"value":353},{"type":14,"tag":166,"props":403,"children":404},{"class":185},[405],{"type":26,"value":406},"false",{"type":14,"tag":166,"props":408,"children":409},{"class":179},[410],{"type":26,"value":363},{"type":14,"tag":166,"props":412,"children":414},{"class":168,"line":413},6,[415,419,423,427,431],{"type":14,"tag":166,"props":416,"children":417},{"class":179},[418],{"type":26,"value":343},{"type":14,"tag":166,"props":420,"children":421},{"class":206},[422],{"type":26,"value":51},{"type":14,"tag":166,"props":424,"children":425},{"class":179},[426],{"type":26,"value":353},{"type":14,"tag":166,"props":428,"children":429},{"class":185},[430],{"type":26,"value":406},{"type":14,"tag":166,"props":432,"children":433},{"class":179},[434],{"type":26,"value":363},{"type":14,"tag":166,"props":436,"children":438},{"class":168,"line":437},7,[439,443,447,451,455],{"type":14,"tag":166,"props":440,"children":441},{"class":179},[442],{"type":26,"value":343},{"type":14,"tag":166,"props":444,"children":445},{"class":206},[446],{"type":26,"value":57},{"type":14,"tag":166,"props":448,"children":449},{"class":179},[450],{"type":26,"value":353},{"type":14,"tag":166,"props":452,"children":453},{"class":185},[454],{"type":26,"value":88},{"type":14,"tag":166,"props":456,"children":457},{"class":179},[458],{"type":26,"value":363},{"type":14,"tag":166,"props":460,"children":462},{"class":168,"line":461},8,[463,467,471,475,479],{"type":14,"tag":166,"props":464,"children":465},{"class":179},[466],{"type":26,"value":343},{"type":14,"tag":166,"props":468,"children":469},{"class":206},[470],{"type":26,"value":63},{"type":14,"tag":166,"props":472,"children":473},{"class":179},[474],{"type":26,"value":353},{"type":14,"tag":166,"props":476,"children":477},{"class":185},[478],{"type":26,"value":406},{"type":14,"tag":166,"props":480,"children":481},{"class":179},[482],{"type":26,"value":363},{"type":14,"tag":166,"props":484,"children":486},{"class":168,"line":485},9,[487,491,495,499,503],{"type":14,"tag":166,"props":488,"children":489},{"class":179},[490],{"type":26,"value":343},{"type":14,"tag":166,"props":492,"children":493},{"class":206},[494],{"type":26,"value":69},{"type":14,"tag":166,"props":496,"children":497},{"class":179},[498],{"type":26,"value":353},{"type":14,"tag":166,"props":500,"children":501},{"class":185},[502],{"type":26,"value":88},{"type":14,"tag":166,"props":504,"children":505},{"class":179},[506],{"type":26,"value":363},{"type":14,"tag":166,"props":508,"children":510},{"class":168,"line":509},10,[511,515,519],{"type":14,"tag":166,"props":512,"children":513},{"class":179},[514],{"type":26,"value":343},{"type":14,"tag":166,"props":516,"children":517},{"class":206},[518],{"type":26,"value":76},{"type":14,"tag":166,"props":520,"children":521},{"class":179},[522],{"type":26,"value":523},": [],\n",{"type":14,"tag":166,"props":525,"children":527},{"class":168,"line":526},11,[528,532,537],{"type":14,"tag":166,"props":529,"children":530},{"class":179},[531],{"type":26,"value":343},{"type":14,"tag":166,"props":533,"children":534},{"class":206},[535],{"type":26,"value":536},"validators",{"type":14,"tag":166,"props":538,"children":539},{"class":179},[540],{"type":26,"value":541},": []\n",{"type":14,"tag":166,"props":543,"children":545},{"class":168,"line":544},12,[546],{"type":14,"tag":166,"props":547,"children":548},{"class":179},[549],{"type":26,"value":550},"    },\n",{"type":14,"tag":166,"props":552,"children":554},{"class":168,"line":553},13,[555,559,563,567,571],{"type":14,"tag":166,"props":556,"children":557},{"class":179},[558],{"type":26,"value":326},{"type":14,"tag":166,"props":560,"children":561},{"class":206},[562],{"type":26,"value":38},{"type":14,"tag":166,"props":564,"children":565},{"class":179},[566],{"type":26,"value":353},{"type":14,"tag":166,"props":568,"children":569},{"class":185},[570],{"type":26,"value":88},{"type":14,"tag":166,"props":572,"children":573},{"class":179},[574],{"type":26,"value":363},{"type":14,"tag":166,"props":576,"children":578},{"class":168,"line":577},14,[579,583,587,591,595],{"type":14,"tag":166,"props":580,"children":581},{"class":179},[582],{"type":26,"value":326},{"type":14,"tag":166,"props":584,"children":585},{"class":206},[586],{"type":26,"value":45},{"type":14,"tag":166,"props":588,"children":589},{"class":179},[590],{"type":26,"value":353},{"type":14,"tag":166,"props":592,"children":593},{"class":185},[594],{"type":26,"value":406},{"type":14,"tag":166,"props":596,"children":597},{"class":179},[598],{"type":26,"value":363},{"type":14,"tag":166,"props":600,"children":602},{"class":168,"line":601},15,[603,607,611,615,619],{"type":14,"tag":166,"props":604,"children":605},{"class":179},[606],{"type":26,"value":326},{"type":14,"tag":166,"props":608,"children":609},{"class":206},[610],{"type":26,"value":51},{"type":14,"tag":166,"props":612,"children":613},{"class":179},[614],{"type":26,"value":353},{"type":14,"tag":166,"props":616,"children":617},{"class":185},[618],{"type":26,"value":406},{"type":14,"tag":166,"props":620,"children":621},{"class":179},[622],{"type":26,"value":363},{"type":14,"tag":166,"props":624,"children":626},{"class":168,"line":625},16,[627,631,635,639,643],{"type":14,"tag":166,"props":628,"children":629},{"class":179},[630],{"type":26,"value":326},{"type":14,"tag":166,"props":632,"children":633},{"class":206},[634],{"type":26,"value":57},{"type":14,"tag":166,"props":636,"children":637},{"class":179},[638],{"type":26,"value":353},{"type":14,"tag":166,"props":640,"children":641},{"class":185},[642],{"type":26,"value":88},{"type":14,"tag":166,"props":644,"children":645},{"class":179},[646],{"type":26,"value":363},{"type":14,"tag":166,"props":648,"children":650},{"class":168,"line":649},17,[651,655,659,663,667],{"type":14,"tag":166,"props":652,"children":653},{"class":179},[654],{"type":26,"value":326},{"type":14,"tag":166,"props":656,"children":657},{"class":206},[658],{"type":26,"value":63},{"type":14,"tag":166,"props":660,"children":661},{"class":179},[662],{"type":26,"value":353},{"type":14,"tag":166,"props":664,"children":665},{"class":185},[666],{"type":26,"value":406},{"type":14,"tag":166,"props":668,"children":669},{"class":179},[670],{"type":26,"value":363},{"type":14,"tag":166,"props":672,"children":674},{"class":168,"line":673},18,[675,679,683,687,691],{"type":14,"tag":166,"props":676,"children":677},{"class":179},[678],{"type":26,"value":326},{"type":14,"tag":166,"props":680,"children":681},{"class":206},[682],{"type":26,"value":69},{"type":14,"tag":166,"props":684,"children":685},{"class":179},[686],{"type":26,"value":353},{"type":14,"tag":166,"props":688,"children":689},{"class":185},[690],{"type":26,"value":88},{"type":14,"tag":166,"props":692,"children":693},{"class":179},[694],{"type":26,"value":363},{"type":14,"tag":166,"props":696,"children":698},{"class":168,"line":697},19,[699,703,707],{"type":14,"tag":166,"props":700,"children":701},{"class":179},[702],{"type":26,"value":326},{"type":14,"tag":166,"props":704,"children":705},{"class":206},[706],{"type":26,"value":76},{"type":14,"tag":166,"props":708,"children":709},{"class":179},[710],{"type":26,"value":541},{"type":14,"tag":166,"props":712,"children":714},{"class":168,"line":713},20,[715],{"type":14,"tag":166,"props":716,"children":717},{"class":179},[718],{"type":26,"value":719},"}",{"type":14,"tag":721,"props":722,"children":724},"h3",{"id":723},"validation-errors",[725],{"type":26,"value":726},"Validation Errors",{"type":14,"tag":28,"props":728,"children":729},{},[730],{"type":26,"value":731},"Form validation errors provide useful feedback about the current state of the form to the user.",{"type":14,"tag":28,"props":733,"children":734},{},[735,737,741],{"type":26,"value":736},"The ",{"type":14,"tag":34,"props":738,"children":739},{},[740],{"type":26,"value":76},{"type":26,"value":742}," field is an array of objects containing the name of the validator, an error message, and the path of the field that triggered the error.",{"type":14,"tag":151,"props":744,"children":747},{"className":745,"code":746,"language":156,"meta":7},[154],"{\n    errors: [\n        {\n            \"name\": \"minLength\",\n            \"message\": \"Please enter at least 8 characters.\",\n            \"path\": \"password\"\n        }\n    ]\n}\n",[748],{"type":14,"tag":159,"props":749,"children":750},{},[751],{"type":14,"tag":151,"props":752,"children":753},{"__ignoreMap":7},[754,761,777,785,811,836,857,865,873],{"type":14,"tag":166,"props":755,"children":756},{"class":168,"line":169},[757],{"type":14,"tag":166,"props":758,"children":759},{"class":179},[760],{"type":26,"value":318},{"type":14,"tag":166,"props":762,"children":763},{"class":168,"line":242},[764,768,772],{"type":14,"tag":166,"props":765,"children":766},{"class":179},[767],{"type":26,"value":326},{"type":14,"tag":166,"props":769,"children":770},{"class":206},[771],{"type":26,"value":76},{"type":14,"tag":166,"props":773,"children":774},{"class":179},[775],{"type":26,"value":776},": [\n",{"type":14,"tag":166,"props":778,"children":779},{"class":168,"line":251},[780],{"type":14,"tag":166,"props":781,"children":782},{"class":179},[783],{"type":26,"value":784},"        {\n",{"type":14,"tag":166,"props":786,"children":787},{"class":168,"line":266},[788,793,798,802,807],{"type":14,"tag":166,"props":789,"children":790},{"class":179},[791],{"type":26,"value":792},"            ",{"type":14,"tag":166,"props":794,"children":795},{"class":260},[796],{"type":26,"value":797},"\"name\"",{"type":14,"tag":166,"props":799,"children":800},{"class":179},[801],{"type":26,"value":353},{"type":14,"tag":166,"props":803,"children":804},{"class":260},[805],{"type":26,"value":806},"\"minLength\"",{"type":14,"tag":166,"props":808,"children":809},{"class":179},[810],{"type":26,"value":363},{"type":14,"tag":166,"props":812,"children":813},{"class":168,"line":275},[814,818,823,827,832],{"type":14,"tag":166,"props":815,"children":816},{"class":179},[817],{"type":26,"value":792},{"type":14,"tag":166,"props":819,"children":820},{"class":260},[821],{"type":26,"value":822},"\"message\"",{"type":14,"tag":166,"props":824,"children":825},{"class":179},[826],{"type":26,"value":353},{"type":14,"tag":166,"props":828,"children":829},{"class":260},[830],{"type":26,"value":831},"\"Please enter at least 8 characters.\"",{"type":14,"tag":166,"props":833,"children":834},{"class":179},[835],{"type":26,"value":363},{"type":14,"tag":166,"props":837,"children":838},{"class":168,"line":413},[839,843,848,852],{"type":14,"tag":166,"props":840,"children":841},{"class":179},[842],{"type":26,"value":792},{"type":14,"tag":166,"props":844,"children":845},{"class":260},[846],{"type":26,"value":847},"\"path\"",{"type":14,"tag":166,"props":849,"children":850},{"class":179},[851],{"type":26,"value":353},{"type":14,"tag":166,"props":853,"children":854},{"class":260},[855],{"type":26,"value":856},"\"password\"\n",{"type":14,"tag":166,"props":858,"children":859},{"class":168,"line":437},[860],{"type":14,"tag":166,"props":861,"children":862},{"class":179},[863],{"type":26,"value":864},"        }\n",{"type":14,"tag":166,"props":866,"children":867},{"class":168,"line":461},[868],{"type":14,"tag":166,"props":869,"children":870},{"class":179},[871],{"type":26,"value":872},"    ]\n",{"type":14,"tag":166,"props":874,"children":875},{"class":168,"line":485},[876],{"type":14,"tag":166,"props":877,"children":878},{"class":179},[879],{"type":26,"value":719},{"type":14,"tag":28,"props":881,"children":882},{},[883,885,890,892,897],{"type":26,"value":884},"Errors are displayed using the ",{"type":14,"tag":34,"props":886,"children":887},{},[888],{"type":26,"value":889},"IFormError",{"type":26,"value":891}," component. Just like the form input components, it connects to the schema using the ",{"type":14,"tag":34,"props":893,"children":894},{},[895],{"type":26,"value":896},"name",{"type":26,"value":898}," prop.",{"type":14,"tag":28,"props":900,"children":901},{},[902,909],{"type":14,"tag":903,"props":904,"children":906},"a",{"href":905},"/docs/forms/components/form-error",[907],{"type":26,"value":908},"Read about the Form Error component",{"type":26,"value":78},{"type":14,"tag":721,"props":911,"children":913},{"id":912},"manual-schema-validation",[914],{"type":26,"value":915},"Manual Schema Validation",{"type":14,"tag":28,"props":917,"children":918},{},[919,921,926,928,933],{"type":26,"value":920},"You can re-compute the validation state of the form schema manually by using the ",{"type":14,"tag":34,"props":922,"children":923},{},[924],{"type":26,"value":925},"validate()",{"type":26,"value":927}," method of the ",{"type":14,"tag":34,"props":929,"children":930},{},[931],{"type":26,"value":932},"useForm()",{"type":26,"value":934}," composable.",{"type":14,"tag":151,"props":936,"children":939},{"className":937,"code":938,"language":156,"meta":7},[154],"const { schema, validate } = useForm\u003C{ field: string }>({\n    field: {\n        value: '',\n        validators: [\n            { name: 'required' }\n        ]\n    }\n});\n\nasync function onSubmit() {\n    await validate();\n    \n    if (schema.value.valid) {\n        // Submit form\n    }\n}\n",[940],{"type":14,"tag":159,"props":941,"children":942},{},[943],{"type":14,"tag":151,"props":944,"children":945},{"__ignoreMap":7},[946,1010,1017,1032,1040,1058,1066,1073,1081,1089,1120,1145,1153,1170,1183,1190],{"type":14,"tag":166,"props":947,"children":948},{"class":168,"line":169},[949,953,957,961,965,970,974,978,982,986,990,994,998,1002,1006],{"type":14,"tag":166,"props":950,"children":951},{"class":173},[952],{"type":26,"value":176},{"type":14,"tag":166,"props":954,"children":955},{"class":179},[956],{"type":26,"value":182},{"type":14,"tag":166,"props":958,"children":959},{"class":185},[960],{"type":26,"value":188},{"type":14,"tag":166,"props":962,"children":963},{"class":179},[964],{"type":26,"value":40},{"type":14,"tag":166,"props":966,"children":967},{"class":185},[968],{"type":26,"value":969},"validate",{"type":14,"tag":166,"props":971,"children":972},{"class":179},[973],{"type":26,"value":193},{"type":14,"tag":166,"props":975,"children":976},{"class":173},[977],{"type":26,"value":198},{"type":14,"tag":166,"props":979,"children":980},{"class":179},[981],{"type":26,"value":203},{"type":14,"tag":166,"props":983,"children":984},{"class":206},[985],{"type":26,"value":209},{"type":14,"tag":166,"props":987,"children":988},{"class":179},[989],{"type":26,"value":214},{"type":14,"tag":166,"props":991,"children":992},{"class":217},[993],{"type":26,"value":220},{"type":14,"tag":166,"props":995,"children":996},{"class":173},[997],{"type":26,"value":225},{"type":14,"tag":166,"props":999,"children":1000},{"class":179},[1001],{"type":26,"value":203},{"type":14,"tag":166,"props":1003,"children":1004},{"class":185},[1005],{"type":26,"value":234},{"type":14,"tag":166,"props":1007,"children":1008},{"class":179},[1009],{"type":26,"value":239},{"type":14,"tag":166,"props":1011,"children":1012},{"class":168,"line":242},[1013],{"type":14,"tag":166,"props":1014,"children":1015},{"class":179},[1016],{"type":26,"value":248},{"type":14,"tag":166,"props":1018,"children":1019},{"class":168,"line":251},[1020,1024,1028],{"type":14,"tag":166,"props":1021,"children":1022},{"class":179},[1023],{"type":26,"value":257},{"type":14,"tag":166,"props":1025,"children":1026},{"class":260},[1027],{"type":26,"value":358},{"type":14,"tag":166,"props":1029,"children":1030},{"class":179},[1031],{"type":26,"value":363},{"type":14,"tag":166,"props":1033,"children":1034},{"class":168,"line":266},[1035],{"type":14,"tag":166,"props":1036,"children":1037},{"class":179},[1038],{"type":26,"value":1039},"        validators: [\n",{"type":14,"tag":166,"props":1041,"children":1042},{"class":168,"line":275},[1043,1048,1053],{"type":14,"tag":166,"props":1044,"children":1045},{"class":179},[1046],{"type":26,"value":1047},"            { name: ",{"type":14,"tag":166,"props":1049,"children":1050},{"class":260},[1051],{"type":26,"value":1052},"'required'",{"type":14,"tag":166,"props":1054,"children":1055},{"class":179},[1056],{"type":26,"value":1057}," }\n",{"type":14,"tag":166,"props":1059,"children":1060},{"class":168,"line":413},[1061],{"type":14,"tag":166,"props":1062,"children":1063},{"class":179},[1064],{"type":26,"value":1065},"        ]\n",{"type":14,"tag":166,"props":1067,"children":1068},{"class":168,"line":437},[1069],{"type":14,"tag":166,"props":1070,"children":1071},{"class":179},[1072],{"type":26,"value":272},{"type":14,"tag":166,"props":1074,"children":1075},{"class":168,"line":461},[1076],{"type":14,"tag":166,"props":1077,"children":1078},{"class":179},[1079],{"type":26,"value":1080},"});\n",{"type":14,"tag":166,"props":1082,"children":1083},{"class":168,"line":485},[1084],{"type":14,"tag":166,"props":1085,"children":1086},{},[1087],{"type":26,"value":1088},"\n",{"type":14,"tag":166,"props":1090,"children":1091},{"class":168,"line":509},[1092,1097,1101,1106,1110,1115],{"type":14,"tag":166,"props":1093,"children":1094},{"class":173},[1095],{"type":26,"value":1096},"async",{"type":14,"tag":166,"props":1098,"children":1099},{"class":179},[1100],{"type":26,"value":203},{"type":14,"tag":166,"props":1102,"children":1103},{"class":173},[1104],{"type":26,"value":1105},"function",{"type":14,"tag":166,"props":1107,"children":1108},{"class":179},[1109],{"type":26,"value":203},{"type":14,"tag":166,"props":1111,"children":1112},{"class":206},[1113],{"type":26,"value":1114},"onSubmit",{"type":14,"tag":166,"props":1116,"children":1117},{"class":179},[1118],{"type":26,"value":1119},"() {\n",{"type":14,"tag":166,"props":1121,"children":1122},{"class":168,"line":526},[1123,1127,1132,1136,1140],{"type":14,"tag":166,"props":1124,"children":1125},{"class":179},[1126],{"type":26,"value":326},{"type":14,"tag":166,"props":1128,"children":1129},{"class":173},[1130],{"type":26,"value":1131},"await",{"type":14,"tag":166,"props":1133,"children":1134},{"class":179},[1135],{"type":26,"value":203},{"type":14,"tag":166,"props":1137,"children":1138},{"class":206},[1139],{"type":26,"value":969},{"type":14,"tag":166,"props":1141,"children":1142},{"class":179},[1143],{"type":26,"value":1144},"();\n",{"type":14,"tag":166,"props":1146,"children":1147},{"class":168,"line":544},[1148],{"type":14,"tag":166,"props":1149,"children":1150},{"class":179},[1151],{"type":26,"value":1152},"    \n",{"type":14,"tag":166,"props":1154,"children":1155},{"class":168,"line":553},[1156,1160,1165],{"type":14,"tag":166,"props":1157,"children":1158},{"class":179},[1159],{"type":26,"value":326},{"type":14,"tag":166,"props":1161,"children":1162},{"class":173},[1163],{"type":26,"value":1164},"if",{"type":14,"tag":166,"props":1166,"children":1167},{"class":179},[1168],{"type":26,"value":1169}," (schema.value.valid) {\n",{"type":14,"tag":166,"props":1171,"children":1172},{"class":168,"line":577},[1173,1177],{"type":14,"tag":166,"props":1174,"children":1175},{"class":179},[1176],{"type":26,"value":343},{"type":14,"tag":166,"props":1178,"children":1180},{"class":1179},"ct-086898",[1181],{"type":26,"value":1182},"// Submit form\n",{"type":14,"tag":166,"props":1184,"children":1185},{"class":168,"line":601},[1186],{"type":14,"tag":166,"props":1187,"children":1188},{"class":179},[1189],{"type":26,"value":272},{"type":14,"tag":166,"props":1191,"children":1192},{"class":168,"line":625},[1193],{"type":14,"tag":166,"props":1194,"children":1195},{"class":179},[1196],{"type":26,"value":719},{"type":14,"tag":1198,"children":1199},"style",[1200],{"type":26,"value":1201},".ct-149352{color:#D73A49;}\n.dark-theme .ct-149352{color:#F97583;}\n.ct-553616{color:#24292E;}\n.dark-theme .ct-553616{color:#E1E4E8;}\n.ct-617022{color:#005CC5;}\n.dark-theme .ct-617022{color:#79B8FF;}\n.ct-762058{color:#6F42C1;}\n.dark-theme .ct-762058{color:#B392F0;}\n.ct-157101{color:#E36209;}\n.dark-theme .ct-157101{color:#FFAB70;}\n.ct-952708{color:#032F62;}\n.dark-theme .ct-952708{color:#9ECBFF;}\n.ct-086898{color:#6A737D;}",{"title":7,"searchDepth":242,"depth":242,"links":1203},[1204],{"id":23,"depth":242,"text":9,"children":1205},[1206,1207],{"id":723,"depth":251,"text":726},{"id":912,"depth":251,"text":915},"markdown","content:docs:forms:validation:state.md","content","docs/forms/validation/state.md","md",1794582261048]