Problem with sendemail.php not alerting correctly

12 replies · opened Feb 10, 2017

Aamandeep9Feb 10, 2017

Right now if you see the screenshot that is what comes up when I use chrome. How do I make it so it just says that it was successful? It says {"alert": "error","message": "Captcha not Validated! Please Try Again."}

It should just say Captcha not Validated! Please Try Again.

Aamandeep9Feb 10, 2017

Also isn't the color supposed to be red since it's an error with an X instead of a check mark? This is under one-page/include/sendemail.php

Aamandeep9Feb 12, 2017

Hello? Anyone going to help me??

Aamandeep9Feb 14, 2017

Would like some help as soon as possible!

SSemicolon WebSTAFFFeb 15, 2017

Hello,

We Really Apologize about the Delays in replying! Can you please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. 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.

Aamandeep9Feb 15, 2017

Thanks for the reply! I have provided a live URL here. (https://singhaman.com/#section-contact)

Also shouldn't the message that pop up be the color red and not green? So it can indicate that the user did something wrong.

Thank you!
-Aman

SSemicolon WebSTAFFFeb 17, 2017

Hello,

We have just checked out your Website! The issue is that you are using the Newer Version of the include/sendemail.php File but Older Version of the HTML Codes. Please use the Latest Version of the Contact Form codes you can find in the Default Files of the Latest Package Folder and this issue will be automatically resolved.

Additionally, also make sure that you have also removed the Additional JS Codes from the Bottom of the Page since they are not required anymore.

It seems that you have upgraded your Website from v3 to v4 but not followed the Full Instructions provided in the Documentation > Upgrade v3 to v4 Section, which is why the update is incomplete and causes errors. Please fix the above mentioned issues and follow the Documentation provided and it should definitely solve your issue. However, if you face any further issues please let us know and we will surely look it up for you. 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.

Aamandeep9Feb 17, 2017

Thanks a bunch, I looked at upgrading from V3 to V4 and it would seem I did not complete the upgrade completely. It was an easy fix after I removed the widget code in the JavaScript section at the bottom of the page!

For those wondering with the same issue, check to see if this is in your code:

Under Contact:

<div id="contact-form-result" data-notify-type="success" data-notify-msg="<i class=icon-ok-sign></i> Message Sent Successfully!"></div>

Change that to:

<div class="contact-form-result"></div>

Then remove the code below from <script type="text/javascript"> at the bottom of your page:

// Contact Form
$("#template-contactform").validate({
submitHandler: function(form) {
$('.form-process').fadeIn();
$(form).ajaxSubmit({
target: '#contact-form-result',
success: function() {
$('.form-process').fadeOut();
$(form).find('.sm-form-control').val('');
$('#contact-form-result').attr('data-notify-msg', $('#contact-form-result').html()).html('');
SEMICOLON.widget.notifications($('#contact-form-result'));
}
});
}
});

I hope this helps you all :)

SSemicolon WebSTAFFFeb 18, 2017

Hello,

Thanks for your Patience! :)

Really Glad that your issues were resolved.

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

HhydrogeologistFeb 22, 2017

hi support team,

i've checked the documentation and followed the instructions upgrade v3 to v4 and now it works fine :)
thanks a lot for this update!!

steff

SSemicolon WebSTAFFFeb 22, 2017

Hello,

Really Glad that your issues were resolved. 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