Ninja Forms Always Logging Same Form ID
-
When I log ‘form’ in console it’s ALWAYS the same form regardless of page or even if I’ve submitted a different form. Why would that be? for instance I’m on a page and the form on that page has an ID of 6 but console.log(form) still outputs information for form ID 4.
when I run (in functions.php):
var mySubmitController = Marionette.Object.extend( { initialize: function() { this.listenTo( Backbone.Radio.channel( 'forms' ), 'submit:response', this.actionSubmit ); }, actionSubmit: function( response ) { console.log('Form ID: ' + form.id); }, });
It’s always coming up with form ID of 4 and all the data associated with that form even though I just submitted a form with an ID of 6.
Also, I can just run console.log(form) on ANY page (even if there’s not a form on it that also returns form ID 4.
Ultimately, I’m trying to get the submission ID passed to the form’s redirect page but not having any luck and I suspect this could be a related issue.
Thoughts?
The page I need help with: [log in to see the link]
- The topic ‘Ninja Forms Always Logging Same Form ID’ is closed to new replies.