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

OnFinish Event #4

Open
fmfcs opened this issue Nov 30, 2015 · 1 comment
Open

OnFinish Event #4

fmfcs opened this issue Nov 30, 2015 · 1 comment

Comments

@fmfcs
Copy link

fmfcs commented Nov 30, 2015

Hi there!

What's the best approach to run javascript code after the form is finished?

Cheers,
Francisco

@israels
Copy link

israels commented Mar 30, 2016

Here's how I did this:

Add a clientside function to the submit button. When clicked use jQuery to get a reference to the survey element and then you can extract the form data.

For example:
var survey = $.survey($("#survey"));
var data = survey.pageData();

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

2 participants