This is Modal Title
parent.handleCheckbox(el, 'onLoad')}
class="mf-checkbox multi-option-input-type"
id="mf-input-checkbox-72d78e64">
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-checkbox"
as=${html``}
/>
<${props.Select}
isOptionDisabled=${option => option.mf_input_option_status === 'disabled'}
className=${"mf-input mf-input-multiselect " + ( validation.errors['mf-multi-select'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_multiselect"
value=${parent.getValue("mf-multi-select") && [{"label":"Item 1","value":"value-1","_id":"286b5e1","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 2","value":"value-2","_id":"b50821b","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 3","value":"value-3","_id":"4c17694","mf_input_option_status":"","mf_input_option_selected":""}].filter(item => {
if(parent.state.formData['mf-multi-select'] && parent.state.formData['mf-multi-select'].indexOf(item.value) != -1 ){
return item;
}
})}
name='mf-multi-select'
placeholder="${ parent.decodeEntities(`Multi Select`) } "
options=${[{"label":"Item 1","value":"value-1","_id":"286b5e1","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 2","value":"value-2","_id":"b50821b","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 3","value":"value-3","_id":"4c17694","mf_input_option_status":"","mf_input_option_selected":""}]}
onChange=${(el) => {
setValue("mf-multi-select", '');
if(el != null){
setValue("mf-multi-select", el, true);
}
parent.multiSelectChange(el, 'mf-multi-select');
}}
ref=${() => {
register({ name: "mf-multi-select" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":false}));
if(parent.state?.submitted !== true){
if ( parent.getValue("mf-multi-select") === '' && false ) {
parent.setValue( 'mf-multi-select', '[]');
parent.multiSelectChange('[]', 'mf-multi-select');
}
}
}}
isMulti
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-multi-select"
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-listing-fname"
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-listing-lname"
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-tele"
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-antal"
as=${html``}
/>
<${props.Flatpickr}
name="mf-date-ankomst"
className="mf-input mf-date-input mf-left-parent "
placeholder="${ parent.decodeEntities(`Ankomstdatum`) } "
options=${{"minDate":"","maxDate":"","dateFormat":"m-d-Y","enableTime":"","disable":[],"mode":"single","static":true,"disableMobile":true,"time_24hr":false}}
value=${parent.getValue('mf-date-ankomst')}
onInput=${parent.handleDateTime}
aria-invalid=${validation.errors['mf-date-ankomst'] ? 'true' : 'false'}
ref=${el => props.DateWidget(
el,
'',
{"message":"This field is required.","required":false},
register,
parent
)}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-date-ankomst"
as=${html``}
/>
<${props.Flatpickr}
name="mf-date-avresa"
className="mf-input mf-date-input mf-left-parent "
placeholder="${ parent.decodeEntities(`Avresedatum`) } "
options=${{"minDate":"","maxDate":"","dateFormat":"m-d-Y","enableTime":"","disable":[],"mode":"single","static":true,"disableMobile":true,"time_24hr":false}}
value=${parent.getValue('mf-date-avresa')}
onInput=${parent.handleDateTime}
aria-invalid=${validation.errors['mf-date-avresa'] ? 'true' : 'false'}
ref=${el => props.DateWidget(
el,
'',
{"message":"This field is required.","required":false},
register,
parent
)}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-date-avresa"
as=${html``}
/>
${ parent.decodeEntities(`Datum för avresa`) }