Crocoblock/jetformbuilder

JetForm Builder Submission Behaviour and URL Handling

Skyhightechbh opened this issue · 1 comments

Hello,

I am using the JetForm Builder widget with the relation form. I have encountered two issues regarding form submission and URL behavior on my dual-language website.

Page Reload Behavior:
    When I set the form submission type to "Reload," the page reloads after clicking the submit button, but it appends ?status=success to the URL. This causes the website to revert to the default (English) language instead of retaining the selected language.
Ajax Submission Limitation:
    I changed the submission type to "Ajax" to avoid the URL parameter issue, which keeps the language intact. However, after submission, the page content does not update automatically, requiring a manual refresh to see the changes. This manual refresh keeps the language as intended, but it is not an acceptable solution for my client.

Questions:

How can I remove ?status=success from the end of the URL?
Alternatively, how can I force the page to reload after pressing the submit button while keeping the submit type set to Ajax?

I would appreciate any assistance you can provide to resolve these issues.

Thank you for your help!

Best regards,
Asim

Hi @Skyhightechbh

You cannot remove this URL parameter because it's needed for the form to display the success or failure message. If you need to reload the page and remove the parameter, you can use a redirect action
https://i.imgur.com/pZ44K0I.png