Skip Navigation

Relationships Forms in a View redirect to the current post in the Loop when submitted via AJAX and “Stay on the same page” is used

Resolved

Reported for: Toolset Forms 2.3.6

Resolved in: 2.5.6

Symptoms

Toolset Relationship Forms offer settings for what happens after visitors submit a form.

When inserted into single posts, and the AJAX submission and “Stay on the same page” options are selected, the form submits its contents with AJAX but reloads the page anyway. This is the expected behavior.

However, if the form is instead placed into a View’s Loop, it will redirect to the current post in the View’s Loop even if AJAX and “Stay on the same page” options are selected.

Workaround

In a future release, we will improve wording and description for the “Stay on the same page” option to clarify that it reloads the page even when submitted using AJAX.

We are also working on a fix for this View Loop issue so the current page is reloaded instead redirecting to the current post in the loop.

Finally, we will investigate opportunities to create an option to submit the form with AJAX and not reload the page (similar to the “Keep showing this form” option of Post and User Forms).

 

Comments are closed