Forms (contact, login) required elements, submit not working without back-end

5 replies · opened Jan 21, 2017

JjuanleJan 21, 2017

Hello,

I am trying to build the login and contact form using asp classic and I have faced some errors.

As far as I understand the PHP file (ex. sendmail.php) is always needed. Is not possible to do the validation in the front-end only (wihout the php file)? I am trying to have an action in the form that redirects to other url, but it is not working.

For example using login-1.html, adding required to the username and password and using the div <div class="contact-widget"> and adding an action such as http://www.test.com. Why is the request not going through? it seems that even after entering the required items the form is not submitted.

Is there any solution for that? Otherwise, do you know where I could get the asp calssic code to validate the form of your template?

Best regards and thanks
Juan

SSemicolon WebSTAFFJan 31, 2017

Hello,

This is Definitely Possible and the include/sendemail.php File is not needed when you are trying to use a different functionality altogether. It is also possible to just Validate the Form on the frontend using Javascript by simply using the Default Validation Plugin Setup from here:

Example, paste the following code at the bottom of the Page after the js/functions.js JS File Linking:


	jQuery("#login-form").validate();

Also, there is not need to use the .contact-widget DIV since this will turn the form into a AJAX Form which will not redirect the Page.

Hope this Helps!

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

JjuanleJan 31, 2017

Thanks a lot for the clear reply. I tested and it worked perfectly. As a suggestion, maybe you could have that as one of your examples of the forms. It could be quite useful for other users of the template. Still this blog is also useful to keep track of that issue.

Best regards and thanks
Juan

JjuanleFeb 1, 2017

Marking problem as solved. Thanks :)

JjuanleFeb 1, 2017

Problem solved

SSemicolon WebSTAFFFeb 2, 2017

Hello,

Thank You so much for this Suggestion. We will surely include this in Our Next Update due to be released tomorrow. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

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