Skip Navigation

[Resolved] Don't reload page in Relationship Form submit

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 3 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1969115
Captura de Tela 2021-02-27 às 14.41.29.png

Hello team. Good vibrations!

I have a relationship form inside a view, with ajax submission activated.
When user click submit (to create relationship) the page reload.
I need to keep the page, without reload.

In relationship form options we have:
- Go to specific page
- Reload the current page
- Redirect back...

All options reload the page.
How can I keep the user on the same page?

Thanks!

#1969127
Captura de Tela 2021-02-27 às 14.58.04.png

Wow! I forgot.

We need the don't reload the page and "Display a message instead of the form" like post forms.

#1969647

Hi, unfortunately all Relationship Form submissions will eventually reload the page, even if AJAX is enabled, as explained here: https://toolset.com/errata/relationships-forms-in-a-views-loop-redirect-to-the-current-post-in-the-loop-when-submitted-with-ajax-and-stay-on-the-same-page-is-used/

Since the option to "Display a message instead of the form" does not exist, and we have not yet implemented a true AJAX solution that does not reload the same page, I can ask my 2nd tier support team if we can submit a feature request for improving the experience of relationship forms to include these features. I'll submit that and let you know what I find out.

#1972195

We've submitted this request to our developers, who will add it to their improvements queue. Based on current schedules and priorities, I don't suspect this will be added within the next two development cycles, but beyond that I'm not able to predict delivery timeframes. If I get more information about that, I'll update the ticket here. For now, I think we can close out the ticket and stand by for a developer update on this new feature. Thanks for the report!