I have a form that uses some jquery to validate the fields, like checking it is a valid email with regex etc. then When the form is submitted (again this is handled by jquery listening to the form for submit event…runs the validation , then submits the form via ajax and returns either a data-success=“Thanks for your enquiry” or data-error=“something wrong” which are attached to the form html in the same way as data-netlify=“true” for example. So everything is working as I wish and the form is posting and the validation is working, but the success or error code is not displayed in my fade in modal window crated by jquery, instead i get the entire HTML of the webpage the form is sent from. I really could use some pointers on this. I basically need to tell my jquery function if it gets the success from netlify to show my success message!. Bet that was as clear as mud lol
netlify user daveharrisonnet
url : https://unruffled-sammet-a254ca.netlify.com/contact/