advancedforms / advanced-forms

WordPress plugin to create forms using Advanced Custom Fields
75 stars 14 forks source link

prevent page reload on form submit #82

Open MPHood opened 4 years ago

MPHood commented 4 years ago

Hi Fabian! Instead of reloading the page ob form submisson i need the success message to be displayed.

How can I achieve that? (I´m Pro User)

fabianlindfors commented 4 years ago

Hi!

Do you mean like submission over AJAX? That isn't supported unfortunately.

FunkyCss commented 4 years ago

+

fabianlindfors commented 4 years ago

Did you mean to type something @FunkyCss ?

geeworthington commented 3 years ago

@fabianlindfors I understand this isnt supported but my issue is kind of related -

Is there a hook I can call after the page has been reloaded once the form has been sent?

My issue is that - I have my form in a bootstrap modal and when I submit the form the page reloads. This is fine... But the page reloads and the modal isnt open thus not displaying the succession message.

fabianlindfors commented 3 years ago

Hi, @geeworthington! I think your best bet is to use some JavaScript to check for the af-success class which should appear on the success message.