tyxla / Gravity-Forms-Multiple-Form-Instances

Allows multiple instances of the same form to be run on a single page when using AJAX.
GNU General Public License v2.0
37 stars 23 forks source link

Fix confirmation message #27

Closed ajoah closed 6 years ago

ajoah commented 6 years ago

Hi,

This PR replaces the form id in the confirmation message.

Before : dom

After : dom-after

If the ID is not replaced, the browser doesn't scroll to form anchor after confirmation and a javascript error appears in the console.

I think, it is the problem mentioned in this review : https://wordpress.org/support/topic/plugin-broken-cannot-read-top-of-undefined/

tyxla commented 6 years ago

Works great @ajoah!

Thank you!