Expand my Community achievements bar.

Required field validation with Submit button message

Avatar

Former Community Member

New to coding but thanks to a few users I am almost there with my form submission.  My required fields validation works but the alert "The Accident Report has been Submitted" is still being displayed.  The form does not submit by email which is fine but when my users receive this message they think it was.  I need to stop this message if the field verification fails. Do I have the second script in the wrong place? Do I need to add an else statement at the end of the first script?

Thanks in advance.

Script.png

0 Replies