<${props.Select}
className=${"mf-input mf-input-select " + ( validation.errors['mf-service'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_select"
name="mf-service"
placeholder="${ parent.decodeEntities(`Select Service`) } "
isSearchable=${false}
options=${[{"label":"Home Healthcare","value":"Home Healthcare","isDisabled":false},{"label":"Physiotherapy","value":"Physiotherapy","isDisabled":false},{"label":"Medical Treatment","value":"Medical Treatment","isDisabled":false},{"label":"IV Fluid & Vitamin","value":"IV Fluid & Vitamin","isDisabled":false},{"label":"Doctor on call","value":"Doctor on call","isDisabled":false},{"label":"Covid 19 PCR Test","value":"Covid 19 PCR Test","isDisabled":false},{"label":"Wellness Package","value":"Covid 19 PCR Test","isDisabled":false},{"label":"Home Laboratory Test","value":"Home Laboratory Test","isDisabled":false},{"label":"Telemedicine","value":"Telemedicine","isDisabled":false},{"label":"Wound Care","value":"Telemedicine","isDisabled":false},{"label":"General nursing service","value":"Telemedicine","isDisabled":false}]}
value=${parent.getValue("mf-service") ? [{"label":"Home Healthcare","value":"Home Healthcare","isDisabled":false},{"label":"Physiotherapy","value":"Physiotherapy","isDisabled":false},{"label":"Medical Treatment","value":"Medical Treatment","isDisabled":false},{"label":"IV Fluid & Vitamin","value":"IV Fluid & Vitamin","isDisabled":false},{"label":"Doctor on call","value":"Doctor on call","isDisabled":false},{"label":"Covid 19 PCR Test","value":"Covid 19 PCR Test","isDisabled":false},{"label":"Wellness Package","value":"Covid 19 PCR Test","isDisabled":false},{"label":"Home Laboratory Test","value":"Home Laboratory Test","isDisabled":false},{"label":"Telemedicine","value":"Telemedicine","isDisabled":false},{"label":"Wound Care","value":"Telemedicine","isDisabled":false},{"label":"General nursing service","value":"Telemedicine","isDisabled":false}].filter(item => item.value === parent.getValue("mf-service"))[0] : []}
onChange=${(e)=> parent.handleSelect(e, "mf-service")}
ref=${() => {
register({ name: "mf-service" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true}));
if ( parent.getValue("mf-service") === '' && false ) {
parent.setValue( 'mf-service', '', true );
parent.handleChange({
target: {
name: 'mf-service',
value: ''
}
});
}
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-service"
as=${html``}
/>