Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent page reload on form submit #82

Open
MPHood opened this issue Mar 11, 2020 · 5 comments
Open

prevent page reload on form submit #82

MPHood opened this issue Mar 11, 2020 · 5 comments

Comments

@MPHood
Copy link

MPHood commented Mar 11, 2020

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
Copy link
Collaborator

Hi!

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

@FunkyCss
Copy link

FunkyCss commented Oct 9, 2020

@fabianlindfors
Copy link
Collaborator

Did you mean to type something @FunkyCss ?

@geeworthington
Copy link

geeworthington commented Nov 12, 2020

@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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants