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(`Gender`) } " isSearchable=${false} options=${[{"label":"Male","value":"value-1","isDisabled":false},{"label":"Female","value":"value-2","isDisabled":false}]} value=${parent.getValue("mf-select") ? [{"mf_input_option_text":"Male","mf_input_option_value":"value-1","mf_input_option_status":"","_id":"21c4c93","mf_input_option_selected":""},{"mf_input_option_text":"Female","mf_input_option_value":"value-2","mf_input_option_status":"","_id":"7ec2291","mf_input_option_selected":""}].filter(item => item.value === parent.getValue("mf-select"))[0] : []} onChange=${parent.handleSelect} 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.handleChange({ target: { name: 'mf-select', value: '' } }); parent.setValue( 'mf-select', '', true ); } }} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-select" 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.Select} className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )} classNamePrefix="mf_select" name="mf-select" placeholder="${ parent.decodeEntities(`Department`) } " isSearchable=${false} options=${[{"label":"Emergency","value":"value-1","isDisabled":false},{"label":"Cardiology","value":"value-2","isDisabled":false},{"label":"Neurology","value":"value-3","isDisabled":false},{"label":"Oncology","value":"value-3","isDisabled":false},{"label":"General surgery","value":"value-3","isDisabled":false},{"label":"Haematology","value":"value-3","isDisabled":false}]} value=${parent.getValue("mf-select") ? [{"mf_input_option_text":"Emergency","mf_input_option_value":"value-1","mf_input_option_status":"","_id":"e31902e","mf_input_option_selected":""},{"mf_input_option_text":"Cardiology","mf_input_option_value":"value-2","mf_input_option_status":"","_id":"7287975","mf_input_option_selected":""},{"mf_input_option_text":"Neurology","mf_input_option_value":"value-3","mf_input_option_status":"","_id":"2c66f97","mf_input_option_selected":""},{"mf_input_option_text":"Oncology","mf_input_option_value":"value-3","mf_input_option_status":"","mf_input_option_selected":"","_id":"762bb31"},{"mf_input_option_text":"General surgery","mf_input_option_value":"value-3","mf_input_option_status":"","mf_input_option_selected":"","_id":"d4f0b91"},{"mf_input_option_text":"Haematology","mf_input_option_value":"value-3","mf_input_option_status":"","mf_input_option_selected":"","_id":"a4a1840"}].filter(item => item.value === parent.getValue("mf-select"))[0] : []} onChange=${parent.handleSelect} 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.handleChange({ target: { name: 'mf-select', value: '' } }); parent.setValue( 'mf-select', '', true ); } }} /> <${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(`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=${register({ name: "mf-date" }, parent.activateValidation({"message":"This field is required.","required":false}))} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-date" as=${html``} />
<${validation.ErrorMessage} errors=${validation.errors} name="mf-textarea" as=${html``} />