I have successfully integrated a gravity form into my WordPress site with no issues, as long as I use the standard response in the backend.
My shortcode for pulling in the form is working fine:
<?php echo do_shortcode('[gravityform id="2" title="true" ajax="true"]'); ?>
However, I would like to display a custom success message upon form submission. Instead of using the default message from the form settings, I want to trigger a specific element on the page to become visible when the form is submitted via AJAX. I am unsure of how to achieve this using JavaScript.
I tried using a form.submit() function, but it only indicates that the form is being submitted, not if the post was successful.
Can anyone provide guidance on how I can check if the form submission was successful?
I hope this explanation makes sense.
Thank you in advance.