Contact Form 7 & Javascript – wait for entry to be added to SQL table
-
CONTEXT
I’m using Contact Form 7’s on_sent_ok: hook to trigger a click on another button like this:
on_sent_ok: "$('#download-button').click()"
. However, what I am actually doing with the form is passing the values to an SQL table. So, what I am interested is not really the sending of the form data, but rather its reception within the SQL table.PROBLEM
Although the on_sent_ok works as intended, the click() could potentially happen after the information is sent, but before it has been added to the SQL table. Other than adding a wait() function that pauses for X ms before executing click(), is there any way to make sure the entry has been added before the click() is executed?
- The topic ‘Contact Form 7 & Javascript – wait for entry to be added to SQL table’ is closed to new replies.