Disable event validation

5 replies · opened Feb 9, 2017

LlocalmanFeb 9, 2017

I'm using Canvas in an ASP.net website. However, I'm unable to do any postbacks to the server I suspect because event validation is happening within possibly functions.js.

Since I'd like to use the built in event validation of .Net, how I can I remove or disable this in the theme?

Thanks!!

SSemicolon WebSTAFFFeb 12, 2017

Hello,

If you are using ASP this for the Contact Forms and want to disable the Form Validation, you can simply remove the .contact-widget Class as it activated AJAX. Deleting this class will automatically fix your issue.

This will definitely work fine. Hope this Helps!

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

LlocalmanFeb 14, 2017

Thank you for your reply, however removing <div class="contact-widget"> from the page does not work.

If I remove functions.js it will work, but everything else in the theme breaks. Is there a part of functions.js I should remove?

LlocalmanFeb 14, 2017

The error gets thrown on any post back at all (not just on the contact form).

LlocalmanFeb 14, 2017

Hi there - I spent some more time debugging and I think I've found the issue. It looks to be something to do with the newsletter subscription in the footer (widget subscribe-widget clearfix).

Thanks for your help.

SSemicolon WebSTAFFFeb 15, 2017

Hello,

Yes indeed. You will need to delete the following code from the js/functions.js File to disable the AJAX Form Submission:

SEMICOLON.widget.contactForm();
SEMICOLON.widget.subscription();
SEMICOLON.widget.quickContact();

This should definitely work fine. 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