2 Contacts forms

11 replies · opened Oct 9, 2020

DDcRodOct 9, 2020

Hello again,
I tried to made a second contactform for my english version, also I find this way on the support forum Canvas.
http://support.semicolonweb.com/forums/topic/multiple-contact-forms/

But my version is totaly different, and try to find a solution without succes.

I duplicate the include/form.php to form_en.php and put the link in the new contactform "form_acl_en.html".
Would you please tel me the right way?

Thank you
Regards

SSemicolon WebSTAFFOct 10, 2020

Hello,

If you are using the include/form.php File, you don't need two PHP Files to process your Forms. The Single PHP File can process Multiple Forms without any issues. Consider following the Form Documentation: http://docs.semicolonweb.com/docs/forms/form-setup/ here and setup your Fields according to your Language and our Form Processor will process the Forms intelligently according to the Language.

Hope this Helps!

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

DDcRodOct 10, 2020

Hello again,
Thank you, I anderstand for language, but until I made my second contactform, it does'nt work.
In first without duplicate php file.
The first in french worked perfectly, until I made the second in english...
So I wonder about the answer?
Regards

SSemicolon WebSTAFFOct 10, 2020

Hello,

Simply change the name Attributes to English Language, that's it! Example: name="template-contactform-prénom" will be name="template-contactform-surname" in the English Language Form.

Everything else will work automatically.

Hope this Helps!

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

DDcRodOct 10, 2020

Yes I did it. But the mail does'nt arrived to the recipient...
Could you confirm that we can make different contacts form with only ONE PHP file (the same php for all contactform.html) ?
One contactform.html in FR, one in EN without any php change except the text in html?
Regards

SSemicolon WebSTAFFOct 10, 2020

Hello,

Yes, we confirm, that you can make Multiple Contact Forms with the same include/form.php File. In fact, all the Forms on all the Page in Our Live Previews uses that same file.

However, if you are looking to send emails to different recipients, then you will need to duplicate the PHP File and add your recipient emails.

If just using FR and EN, then you would just need to change the HTML.

Additionally, as you mentioned, that the mail is not arriving in your Recipient's Email, could be an issue with your Server's Mail delivery. Consider using SMTP to ensure that the Mails are always delivered or consider checking your SPAM Folders. 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.

DDcRodOct 10, 2020

OK,
I was in the right track.
I must look on my client where is his trouble.
Thank you verry much for all this explanation.
I will tel you when we are OK.
Regards.

SSemicolon WebSTAFFOct 12, 2020

Hello,

Very happy to Help!

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

DDcRodOct 15, 2020

HI,
In fine, I would like to made 2 php file, becose of language (for sender in French : form.php) & for sender in English (formEn.php) but my html doesn't reconise the formEn.php...
Does I must made another name (I tried with form-en.php, form_en.php) without result.
I keep the same recipients, but the confirmation have to be translated for more confort...
Thats the reson wy I tried to made 2 php files.
An idea?
Regards

SSemicolon WebSTAFFOct 16, 2020

Hello,

We have just checked out your Forms and it gives us a 500 Internal Server Error: https://www.assurances-conseils.lu/include/formEn.php, so there is some PHP error on the File.

Double Check your PHP Codes or Customizations made in this File. If you are still facing further issues, then please consider adding the .customjs Class to the .form-widget DIV and then the following code at the very top (just after the PHP open tag) of your File:
[ch_pre]error_reporting(E_ALL);[/ch_pre]

which should display all the possible errors. Please notify us about the Error Message you see, after going through the process above, so that we can provide you with more assistance on 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.

DDcRodOct 16, 2020

Great,
I took the right php file, copy paste your english original code where I needed.
Every thing is all right and work.
Enjoy
Thank you very much for your help and advice.
Regards
Rodolphe

SSemicolon WebSTAFFOct 17, 2020

Hello,

Glad 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.

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