Hello
I create the form with custom fields
and setup
Submit this form without reloading the page (use AJAX)
and
Display a message instead
But my page is refreshed after submission
As I can see, the AJAX request returns following
{"result":"redirect","is_ajax":true,"output":"<p>\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435. \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435...<\/p><script type='text\/javascript'>document.location='\/tech-kruzhok\/?_tt=1541935609&_success_message=91_1&_target=141#cred_form_91_1';<\/script>","formtype":"new"}
As I can understand the point is
returned
How to avoid that
Thank you
Hi there,
Thank you for contacting us and I'll be happy to assist.
When "Display a message instead of the form..." option is selected, the page is only partially reloaded and the URL parameters are added, when the AJAX submission option is checked.
To avoid any type of reloading, redirection or URL parameters, you can select the option "Keep displaying this form" option for the "After visitors submit this form" field in the form's settings, but it will only show the default message.
Note: In case, you're experiencing a different behavior on your website's form, please share its link so I can troubleshoot it accordingly.
regards,
Waqar
Hello
Thank you for your reply
So
When I combine AJAX and "Keep displaying the form" it works OK
But
If I set AJAX and "Display the message instead of the form the WHOLE page is reloaded, which is not OK
you could try
1. AJAX and keep the form
hidden link
2.AJAX and display message
hidden link
Hopefully russian will not confuse you
Hi,
Thanks for sharing the links to your forms.
I've discussed this with the team and currently the way "Display a message instead of the form..." option works, it redirects/reloads the page to show the set message and I'm afraid, this can't be avoided.
The only option that doesn't reload the page, is "Keep displaying the form", as you noted.
Note: you're welcome to submit this feature as a feature request at:
https://toolset.com/forums/forum/professional-support/#feature-request
regards,
Waqar