Form submit goes to form.php instead of staying on page

3 replies · opened Feb 12, 2024

MMontereyDeanFeb 12, 2024

I have a form that's sort of working. I receive an email with all the form fields included.

However, after submitting, the form redirects to form.php and shows the following message:

{ "alert": "success", "message": "We have successfully received your Message and will get Back to you as soon as possible." }

I've included a "Live URL."

MMontereyDeanFeb 12, 2024

Also, do I need to do something additional so uploaded files will be attached to the sent email?

MMontereyDeanFeb 12, 2024

Got the file attachment working. But I still get sent to form.php when submit is pressed.

SSemicolon WebSTAFFFeb 14, 2024

Hello,

The issue is due to the JS conflict on the Page which is causing this. The AJAX form is not working as expected and requires for the Form to send the response to include/form.php File and then receive a response and display the Success/Error Notification accordingly on the Page without redirecting. In order for the Form to work, you will need to fix any JS Errors on the Page and this issue should be automatically resolved. You can check these errors in your Browser’s Developer Console and fix them accordingly as the errors we see right now on your Website is not due to Canvas’s Codes but due to your Customized Codes.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard