MetForm Quote


parent.activateValidation({“message”:”This field is required.”,”minLength”:1,”maxLength”:””,”type”:”none”,”required”:false,”expression”:”null”}, el)}
/>
<${validation.ErrorMessage} errors=${validation.errors} name="mf-first-name" 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`) } " isSearchable=${false} options=${[{"label":"Fabric Dyeing","value":"value-1","isDisabled":false},{"label":"Satin Weaving","value":"value-2","isDisabled":false},{"label":"Digital Fabric Printing","value":"value-3","isDisabled":false}]} value=${parent.getValue("mf-select") ? [{"mf_input_option_text":"Fabric Dyeing","mf_input_option_value":"value-1","_id":"61fe1a7","mf_input_option_status":"","mf_input_option_selected":""},{"mf_input_option_text":"Satin Weaving","mf_input_option_value":"value-2","_id":"ef6d3ef","mf_input_option_status":"","mf_input_option_selected":""},{"mf_input_option_text":"Digital Fabric Printing","mf_input_option_value":"value-3","_id":"e782bed","mf_input_option_status":"","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``} />


<${validation.ErrorMessage} errors=${validation.errors} name="mf-comment" as=${html``} />