Subscriber check box

4 replies · opened Jan 5, 2017

JjhdtruongJan 5, 2017

I'm trying to add a checkbox to my form which also is visible in the email that is sent to me, how would I achieve this?

I've put a checkbox into the form on the front end of the website but realizing what I've achieved is purely aesthetic and shows no information when the email is sent to me.

Thanks!

JjhdtruongJan 6, 2017

Hi just bumping this up as it seems a few questions got answered yesterday and was hoping to get this simple one attended to

Thanks!

SSemicolon WebSTAFFJan 6, 2017

Hello,

Thank You so much for your Patience! We definitely work on Replying to your Support Query as fast as possible, however we request you to not add a reply to your Support Request since it bumps it to the Top the Support Queue which further delays our Reply as we check the Replies based on the Old Freshness. Thanks again for your Patience and Understanding! :)

Regarding your Query, to receive the Values of the New Fields in your Form Emails, you will need to add a Name to the Form Field (in your case Checkbox) and then add the reference to it in the include/sendemail.php File. Here is a comprehensive guide to this:

There are 3 Steps to configure this in the include/sendemail.php File:

  1. Find the following code and duplicate it to add the New Field:
$name = isset( $_POST['template-contactform-name'] ) ? $_POST['template-contactform-name'] : '';

Example:

$newfield = isset( $_POST['template-contactform-newfield'] ) ? $_POST['template-contactform-newfield'] : '';

Make sure that the template-contactform-newfield is same as the Form Input’s name attribute in the HTML.

  1. Now, find the following code just a few lines below and duplicate it to add the New Field:
$name = isset($name) ? "Name: $name

" : '';

Example:

$newfield = isset($newfield) ? "New Field: $newfield

" : '';
  1. You now simply need to Add the New Field to the following code:
$body = "$name $email $phone $service $message $referrer";

Example:

$body = "$name $email $phone $newfield $service $message $referrer";

This will definitely work fine. Thanks for your Patience. Hope this Helps!

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

JjhdtruongJan 8, 2017

Many thanks team, apologies I was afried it to be buried.
This worked well and thanks for the response.

SSemicolon WebSTAFFJan 9, 2017

Hello,

Really Glad that your issues were resolved. Very very Happy to Help! Thanks for your Patience.

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