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

Reinit on AJAX form submission of Gravity Forms #1

Open
codenameEli opened this issue Aug 17, 2016 · 0 comments
Open

Reinit on AJAX form submission of Gravity Forms #1

codenameEli opened this issue Aug 17, 2016 · 0 comments

Comments

@codenameEli
Copy link
Owner

Not sure what the best way to handle this is but there is an event to listen in on from GForms. This happens because I believe GForms sends back all new markup, causing the selectIt JS to not run.

Current solution is to listen in your theme.js and call it again. Not the most elegant solution.

$(document).on('gform_post_render', function(e, formId) {
        $('select').selectIt({
            beforeCreateOption: setSelectedOptions,
            onChange: goToChildUrl
        });
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant