Bring Nature in Your Home
Let us know how to get back to you.
{
parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true,"expression":"null"}, el)
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-first-name"
as=${html``}
/>
{
parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true,"expression":"null"}, el)
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-last-name"
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``}
/>
<${props.Select}
className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_select"
name="mf-select"
placeholder="${ parent.decodeEntities(`Our Services`) } "
isSearchable=${false}
options=${[{"label":"Planting & Removal","value":"value-1","isDisabled":false},{"label":"Trimming Plant","value":"value-2","isDisabled":false},{"label":"Planting & Removal","value":"value-3","isDisabled":false},{"label":"Garden Design","value":"value-4","isDisabled":false},{"label":"Lawn Care","value":"value-4","isDisabled":false}]}
value=${parent.getValue("mf-select") ? [{"label":"Planting & Removal","value":"value-1","isDisabled":false},{"label":"Trimming Plant","value":"value-2","isDisabled":false},{"label":"Planting & Removal","value":"value-3","isDisabled":false},{"label":"Garden Design","value":"value-4","isDisabled":false},{"label":"Lawn Care","value":"value-4","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``}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-comment"
as=${html``}
/>