I have a hidden div block that I want it to show when a form is submitted. I currently have the form submission button set to show the pop-up which works but I only want it to show when the required fields on the form are filled out and the form is correctly submitted.
That way, if someone doesn’t fill out a required field in the form, they won’t think that they submitted it and move on.
The most basic way to do this is remove the interaction from the submit button and add the following code to Page Settings > Custom Code > Before </body> tag:
I added the code and removed the trigger and it worked when i typed in a valid email but when I typed in a fake email to test it, the form still popped up. I want to pop up to only show when the form has been submitted. Is that supposed to happen with the code?