Sdad – Structure design and developing

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-telephone" 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-text" 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":"3a925af","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 2","value":"value-2","_id":"bec21cc","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 3","value":"value-3","_id":"4965ff9","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(`Select Services`) } " options=${[{"label":"Item 1","value":"value-1","_id":"3a925af","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 2","value":"value-2","_id":"bec21cc","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 3","value":"value-3","_id":"4965ff9","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``} />
<${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":"3a925af","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 2","value":"value-2","_id":"bec21cc","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 3","value":"value-3","_id":"4965ff9","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(`Select Plan`) } " options=${[{"label":"Item 1","value":"value-1","_id":"3a925af","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 2","value":"value-2","_id":"bec21cc","mf_input_option_status":"","mf_input_option_selected":""},{"label":"Item 3","value":"value-3","_id":"4965ff9","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``} />
<${validation.ErrorMessage} errors=${validation.errors} name="mf-textarea" as=${html``} />