{ 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``} />
<${props.Select} className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )} classNamePrefix="mf_select" name="mf-select" placeholder="${ parent.decodeEntities(`Number Of Persons`) } " isSearchable=${false} options=${[{"label":"02","value":"value-1","isDisabled":false},{"label":"04","value":"value-2","isDisabled":false},{"label":"06","value":"value-3","isDisabled":false},{"label":"08","value":"value-4","isDisabled":false},{"label":"10","value":"value-5","isDisabled":false}]} value=${parent.getValue("mf-select") ? [{"label":"02","value":"value-1","isDisabled":false},{"label":"04","value":"value-2","isDisabled":false},{"label":"06","value":"value-3","isDisabled":false},{"label":"08","value":"value-4","isDisabled":false},{"label":"10","value":"value-5","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":true})); 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.Flatpickr} name="mf-date" className="mf-input mf-date-input mf-left-parent " placeholder="${ parent.decodeEntities(`Choose Date`) } " options=${{"minDate":"","maxDate":"","dateFormat":"m-d-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":true}, register, parent )} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-date" as=${html``} />
<${props.Flatpickr} name="mf-time" className="mf-input mf-date-input mf-time-input mf-left-parent " placeholder="${ parent.decodeEntities(`Select Time`) } " options=${{"enableTime":true,"dateFormat":"H:i","noCalendar":true,"time_24hr":true,"static":true}} value=${parent.getValue('mf-time')} onInput=${parent.handleDateTime} aria-invalid=${validation.errors['mf-time'] ? 'true' : 'false'} ref=${ el => { if( el && el.node.nextSibling ) { if( el.props.value.trim().length ) { el.node.nextSibling.classList.add('value-found'); }else { el.node.nextSibling.classList.remove('value-found'); } } register({ name: "mf-time" }, parent.activateValidation({"message":"This field is required.","required":true})) } } /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-time" as=${html``} />
<${props.Select} className=${"mf-input mf-input-select " + ( validation.errors['mf-select-01'] ? 'mf-invalid' : '' )} classNamePrefix="mf_select" name="mf-select-01" placeholder="${ parent.decodeEntities(`Occasion`) } " isSearchable=${false} options=${[{"label":"Occasion 01","value":"value-1","isDisabled":false},{"label":"Occasion 02","value":"value-2","isDisabled":false},{"label":"Occasion 03","value":"value-3","isDisabled":false}]} value=${parent.getValue("mf-select-01") ? [{"label":"Occasion 01","value":"value-1","isDisabled":false},{"label":"Occasion 02","value":"value-2","isDisabled":false},{"label":"Occasion 03","value":"value-3","isDisabled":false}].filter(item => item.value === parent.getValue("mf-select-01"))[0] : []} onChange=${(e)=> parent.handleSelect(e, "mf-select-01")} ref=${() => { register({ name: "mf-select-01" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true})); if ( parent.getValue("mf-select-01") === '' && false ) { parent.setValue( 'mf-select-01', '', true ); parent.handleChange({ target: { name: 'mf-select-01', value: '' } }); } }} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-select-01" as=${html``} />
<${props.Select} className=${"mf-input mf-input-select " + ( validation.errors['mf-select-02'] ? 'mf-invalid' : '' )} classNamePrefix="mf_select" name="mf-select-02" placeholder="${ parent.decodeEntities(`Special Requirement`) } " isSearchable=${false} options=${[{"label":"Special 01","value":"value-1","isDisabled":false},{"label":"Special 02","value":"value-2","isDisabled":false},{"label":"Special 03","value":"value-3","isDisabled":false}]} value=${parent.getValue("mf-select-02") ? [{"label":"Special 01","value":"value-1","isDisabled":false},{"label":"Special 02","value":"value-2","isDisabled":false},{"label":"Special 03","value":"value-3","isDisabled":false}].filter(item => item.value === parent.getValue("mf-select-02"))[0] : []} onChange=${(e)=> parent.handleSelect(e, "mf-select-02")} ref=${() => { register({ name: "mf-select-02" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true})); if ( parent.getValue("mf-select-02") === '' && false ) { parent.setValue( 'mf-select-02', '', true ); parent.handleChange({ target: { name: 'mf-select-02', value: '' } }); } }} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-select-02" as=${html``} />
parent.activateValidation({"message":"This field is required.","emailMessage":"Please enter a valid Email address","minLength":1,"maxLength":"","type":"none","required":true,"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``} />