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.","minLength":1,"maxLength":"","type":"none","required":false,"expression":"null"}, el)}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-telephone"
as=${html``}
/>
<${props.Flatpickr}
name="mf-pick-up-date"
className="mf-input mf-date-input mf-left-parent "
placeholder="${ parent.decodeEntities(`Select Date`) } "
options=${{"minDate":"","maxDate":"","dateFormat":"m-d-Y","enableTime":"","disable":[],"mode":"single","static":true,"disableMobile":true,"time_24hr":false}}
value=${parent.getValue('mf-pick-up-date')}
onInput=${parent.handleDateTime}
aria-invalid=${validation.errors['mf-pick-up-date'] ? 'true' : 'false'}
ref=${el => props.DateWidget(
el,
'',
{"message":"This field is required.","required":false},
register,
parent
)}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-pick-up-date"
as=${html``}
/>
<${props.Select}
className=${"mf-input mf-input-select " + ( validation.errors['mf-pick-up-location'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_select"
name="mf-pick-up-location"
placeholder="${ parent.decodeEntities(`Select Location`) } "
isSearchable=${false}
options=${[{"label":"Shuttle Denpasar","value":"value-1","isDisabled":false},{"label":"Shuttle Badung","value":"value-2","isDisabled":false},{"label":"Shuttle Tabanan","value":"value-3","isDisabled":false}]}
value=${parent.getValue("mf-pick-up-location") ? [{"label":"Shuttle Denpasar","value":"value-1","isDisabled":false},{"label":"Shuttle Badung","value":"value-2","isDisabled":false},{"label":"Shuttle Tabanan","value":"value-3","isDisabled":false}].filter(item => item.value === parent.getValue("mf-pick-up-location"))[0] : []}
onChange=${(e)=> parent.handleSelect(e, "mf-pick-up-location")}
ref=${() => {
register({ name: "mf-pick-up-location" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":false}));
if ( parent.getValue("mf-pick-up-location") === '' && false ) {
parent.setValue( 'mf-pick-up-location', '', true );
parent.handleChange({
target: {
name: 'mf-pick-up-location',
value: ''
}
});
}
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-pick-up-location"
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``}
/>
<${props.Select}
className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_select"
name="mf-select"
placeholder="${ parent.decodeEntities(`Select Bus Type`) } "
isSearchable=${false}
options=${[{"label":"Volto 403","value":"value-1","isDisabled":false},{"label":"Etiquette 101","value":"value-2","isDisabled":false},{"label":"Skavia 929","value":"value-3","isDisabled":false}]}
value=${parent.getValue("mf-select") ? [{"label":"Volto 403","value":"value-1","isDisabled":false},{"label":"Etiquette 101","value":"value-2","isDisabled":false},{"label":"Skavia 929","value":"value-3","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.Flatpickr}
name="mf-return-date"
className="mf-input mf-date-input mf-left-parent "
placeholder="${ parent.decodeEntities(`Return Date`) } "
options=${{"minDate":"","maxDate":"","dateFormat":"m-d-Y","enableTime":"","disable":[],"mode":"single","static":true,"disableMobile":true,"time_24hr":false}}
value=${parent.getValue('mf-return-date')}
onInput=${parent.handleDateTime}
aria-invalid=${validation.errors['mf-return-date'] ? 'true' : 'false'}
ref=${el => props.DateWidget(
el,
'',
{"message":"This field is required.","required":false},
register,
parent
)}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-return-date"
as=${html``}
/>
<${props.Select}
className=${"mf-input mf-input-select " + ( validation.errors['mf-return-location'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_select"
name="mf-return-location"
placeholder="${ parent.decodeEntities(`Select Location`) } "
isSearchable=${false}
options=${[{"label":"Shuttle Denpasar","value":"value-1","isDisabled":false},{"label":"Shuttle Badung","value":"value-2","isDisabled":false},{"label":"Shuttle Tabanan","value":"value-3","isDisabled":false}]}
value=${parent.getValue("mf-return-location") ? [{"label":"Shuttle Denpasar","value":"value-1","isDisabled":false},{"label":"Shuttle Badung","value":"value-2","isDisabled":false},{"label":"Shuttle Tabanan","value":"value-3","isDisabled":false}].filter(item => item.value === parent.getValue("mf-return-location"))[0] : []}
onChange=${(e)=> parent.handleSelect(e, "mf-return-location")}
ref=${() => {
register({ name: "mf-return-location" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":false}));
if ( parent.getValue("mf-return-location") === '' && false ) {
parent.setValue( 'mf-return-location', '', true );
parent.handleChange({
target: {
name: 'mf-return-location',
value: ''
}
});
}
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-return-location"
as=${html``}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-textarea"
as=${html``}
/>