{ parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":false,"expression":"null"}, el) }} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-text" as=${html``} />
parent.activateValidation({"message":"This field is required.","emailMessage":"Please enter a valid Email address","minLength":1,"maxLength":"","type":"none","required":false,"expression":"null"}, el)} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-email" as=${html``} />
parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":false,"expression":"null"}, el)} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-telephone" as=${html``} />
<${props.Flatpickr} name="mf-date" className="mf-input mf-date-input mf-left-parent " placeholder="${ parent.decodeEntities(`dd/mm/yyyy`) } " options=${{"minDate":"","maxDate":"","dateFormat":"d-m-Y","enableTime":"","disable":[],"mode":"single","static":true,"disableMobile":true,"time_24hr":false}} value=${parent.getValue('mf-date')} onInput=${parent.handleDateTime} aria-invalid=${validation.errors['mf-date'] ? 'true' : 'false'} ref=${el => props.DateWidget( el, '', {"message":"This field is required.","required":false}, register, parent )} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-date" as=${html``} />
<${props.Select} className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )} classNamePrefix="mf_select" name="mf-select" placeholder="${ parent.decodeEntities(`Services`) } " isSearchable=${false} options=${[{"label":"Classic Haircut","value":"value-1","isDisabled":false},{"label":"Beard Trim","value":"value-2","isDisabled":false},{"label":"Face Facial","value":"value-3","isDisabled":false},{"label":"Royal shave","value":"Input Value","isDisabled":false},{"label":"Hair Color","value":"Input Value","isDisabled":false}]} value=${parent.getValue("mf-select") ? [{"label":"Classic Haircut","value":"value-1","isDisabled":false},{"label":"Beard Trim","value":"value-2","isDisabled":false},{"label":"Face Facial","value":"value-3","isDisabled":false},{"label":"Royal shave","value":"Input Value","isDisabled":false},{"label":"Hair Color","value":"Input Value","isDisabled":false}].filter(item => item.value === parent.getValue("mf-select"))[0] : []} onChange=${(e)=> parent.handleSelect(e, "mf-select")} ref=${() => { register({ name: "mf-select" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":false})); if ( parent.getValue("mf-select") === '' && false ) { parent.setValue( 'mf-select', '', true ); parent.handleChange({ target: { name: 'mf-select', value: '' } }); } }} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-select" as=${html``} />
<${props.Select} className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )} classNamePrefix="mf_select" name="mf-select" placeholder="${ parent.decodeEntities(`Barbers`) } " isSearchable=${false} options=${[{"label":"Danilo Ferduir","value":"value-1","isDisabled":false},{"label":"Getha Leonardo","value":"value-2","isDisabled":false},{"label":"Alexandro Jeita","value":"value-3","isDisabled":false},{"label":"Johny Geraldo","value":"Input Value","isDisabled":false},{"label":"Daventa Toriko","value":"Input Value","isDisabled":false}]} value=${parent.getValue("mf-select") ? [{"label":"Danilo Ferduir","value":"value-1","isDisabled":false},{"label":"Getha Leonardo","value":"value-2","isDisabled":false},{"label":"Alexandro Jeita","value":"value-3","isDisabled":false},{"label":"Johny Geraldo","value":"Input Value","isDisabled":false},{"label":"Daventa Toriko","value":"Input Value","isDisabled":false}].filter(item => item.value === parent.getValue("mf-select"))[0] : []} onChange=${(e)=> parent.handleSelect(e, "mf-select")} ref=${() => { register({ name: "mf-select" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":false})); if ( parent.getValue("mf-select") === '' && false ) { parent.setValue( 'mf-select', '', true ); parent.handleChange({ target: { name: 'mf-select', value: '' } }); } }} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-select" as=${html``} />