how to setup contact form

4 replies · opened Aug 20, 2023

Bbphouse_gkpAug 20, 2023

other than https://docs.semicolonweb.com/docs/forms/form-setup/#docs-section-html link, is there any other link or youtube channel to setup contact form in laravel framework. i tried but couldn't succeed. my site is under construction.

SSemicolon WebSTAFFAug 22, 2023

Hello,

Canvas is provided as a Raw HTML/CSS Template and the PHP Provided for the Form Processor works fine for most frameworks, however, since Laravel support is not provided by default with Canvas, this is something that you must integrate yourself with the help of the codes already provided with the Package.

If something does not work with the Default Codes provided, we are always here to assist. However, Laravel integration is out of scope of the included support.

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

Bbphouse_gkpAug 22, 2023

I was abble to set up mail. But along with mail why token and submit details as well received? How to remove token and submit details.

SSemicolon WebSTAFFAug 24, 2023

Hello,

The Contact Form processed all the Fields by default. The above mentioned issue is due to the incorrect use of Fields and Prefix combinations. In order to send Emails correctly, you will need to setup prefixes: https://docs.semicolonweb.com/docs/forms/fields/ so that Fields are processed correctly. In order to Hide a Field from the Contact Form, like the _token Field. you will need to manually set the _token Field in the $unsets parameter. Find the following code in the include/form.php File:
[ch_pre type="php"]$unsets = array( 'prefix', 'subject', 'replyto', 'template', 'html_title', 'message', 'autoresponder', 'ar_subject', 'ar_title', 'ar_message', 'ar_footer', $prefix . 'botcheck', 'g-recaptcha-response', 'h-captcha-response', 'force_recaptcha', $prefix . 'submit' );[/ch_pre]

and replace it with:
[ch_pre type="php"]$unsets = array( 'prefix', 'subject', 'replyto', 'template', 'html_title', 'message', 'autoresponder', 'ar_subject', 'ar_title', 'ar_message', 'ar_footer', $prefix . 'botcheck', 'g-recaptcha-response', 'h-captcha-response', 'force_recaptcha', '_token', $prefix . 'submit' );[/ch_pre]

This will fix the issue. Hope this Helps!

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

Bbphouse_gkpAug 24, 2023

Thanks! It worked.

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