I don't know how I can add "validateEmail" method in the "formValid" method to validate email writing
export const validateEmail = (email) => {var re = /S+@S+.S+/; return re.test(email);};
add to this methode
const formValid =
getValueManager(form, "data.name", null) &&
getValueManager(form, "form.mainContactFirstName", null) &&
getValueManager(form, "form.mainContactLastName", null) &&
getValueManager(form,"form.mainContactEmail" ,null);
const finalId = id || idAdd;