<${props.Select}
className=${"mf-input mf-input-select " + ( validation.errors['mf-title'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_select"
name="mf-title"
placeholder="${ parent.decodeEntities(`Select`) } "
isSearchable=${false}
options=${[{"label":"Loan Title 1","value":"value-1","isDisabled":false},{"label":"Loan Title 2","value":"value-2","isDisabled":false},{"label":"Loan Title 3","value":"value-3","isDisabled":false}]}
value=${parent.getValue("mf-title") ? [{"label":"Loan Title 1","value":"value-1","isDisabled":false},{"label":"Loan Title 2","value":"value-2","isDisabled":false},{"label":"Loan Title 3","value":"value-3","isDisabled":false}].filter(item => item.value === parent.getValue("mf-title"))[0] : []}
onChange=${(e)=> parent.handleSelect(e, "mf-title")}
ref=${() => {
register({ name: "mf-title" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":false}));
if ( parent.getValue("mf-title") === '' && false ) {
parent.setValue( 'mf-title', '', true );
parent.handleChange({
target: {
name: 'mf-title',
value: ''
}
});
}
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-title"
as=${html``}
/>
${ parent.decodeEntities(`Select the loan title from dropdown.`) }
{
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.decodeEntities(`Enter your first name here`) }
{
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.decodeEntities(`Enter your last name here`) }
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``}
/>
${ parent.decodeEntities(`Example: user@website.com`) }
parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true,"expression":"null"}, el)}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-phone"
as=${html``}
/>
${ parent.decodeEntities(`Example: +1 212-695-1962`) }
{
parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true,"expression":"null"}, el)
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-address-line-1"
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-address-line-2-city"
as=${html``}
/>
${ parent.decodeEntities(`City *`) }
{
parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true,"expression":"null"}, el)
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-address-line-2-style"
as=${html``}
/>
${ parent.decodeEntities(`County *`) }
parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true,"expression":"null"}, el)}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-zip"
as=${html``}
/>
${ parent.decodeEntities(`Example: CW1 2EW`) }
{
parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true,"expression":"null"}, el)
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-text"
as=${html``}
/>
${ parent.decodeEntities(`How will the loan be repaid?`) }
<${props.SignaturePad}
clearButton="true"
penColor="#0D1427"
name="mf-signature"
onEnd=${function () { parent.handleSignature(this) }}
/>
parent.activateValidation({"message":"This field is required.","required":false}, el) }
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-signature"
as=${html``}
/>
${ parent.decodeEntities(`Please draw your digital signature.`) }