Hi,
Chronoforms v5 is pretty slick. Quite a positive change!
I've figured out most of it without help based on other versions I've used of CF, and it does send an email and everything seems fine. But the curly bracket fields are empty in the received email. Nothing is being sent beyond the HTML.
What am I doing wrong?
Thanks in advance,
Mark
Chronoforms v5 is pretty slick. Quite a positive change!
I've figured out most of it without help based on other versions I've used of CF, and it does send an email and everything seems fine. But the curly bracket fields are empty in the received email. Nothing is being sent beyond the HTML.
What am I doing wrong?
Thanks in advance,
Mark
Bob, sorry - that was pretty ambiguous. Here's the debug info:
Array
(
[chronoform] => contact
[event] => submit
[Name] => mark
[Company] => Company.Com
[Phone] => 555-555-5555
[Email] => mark@company.com
[Comments] => blah
[captcha] =>
[button6] => Submit
[ip_address] => <redacted>
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[0] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:mark@company.com
[2] => Subject:visitor from Website
[3] => From name:Website
[4] => From email:mark@company.com
[5] => Reply name:
[6] => Reply email:
[7] => Attachments:
[8] => Body:
<table>
<tbody>
<tr>
<td>Name</td>
<td></td>
</tr>
<tr>
<td>Company</td>
<td></td>
</tr>
<tr>
<td>Phone</td>
<td></td>
</tr>
<tr>
<td>email</td>
<td></td>
</tr>
<tr>
<td>Comments</td>
<td></td>
</tr>
</tbody>
</table>
Poster's IP address:<redacted>
)
)
)
The email I get is blank except for the field names:
Name
Company
Phone
email
Comments
Poster's IP address: <redacted>
Apparently it doesn't. When I look at the CODE (Wizard designer) The HTML is a mess (run together) and there are no placeholders. But when I set the form up I know there were placeholders { } because I changed the field name and added the placeholders. But now I also cannot find that section where I did that. It wasn't quite as good as CF4's generate template function but it worked. The code below is not it. I don't know if you see a mess of runon HTML but that's how it's being outputted.
<div class="form-group gcore-form-row" id="form-row-2"><div class="gcore-input gcore-display-table" id="fin-fld1"><br><strong>Please use this form to contact us.</strong><br>
If your need is urgent, please call 999.888.7777 <br><br></div></div><div class="form-group gcore-form-row" id="form-row-4"><label for="name" class="control-label gcore-label-left">Name</label>
<div class="gcore-input gcore-display-table" id="fin-name"><input name="Name" id="name" value="" placeholder="" maxlength="" size="" class="validate['required'] form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /><span class="help-block"><em>Your Full Name</em></span></div></div><div class="form-group gcore-form-row" id="form-row-6"><label for="company" class="control-label gcore-label-left">Company</label>
<div class="gcore-input gcore-display-table" id="fin-company"><input name="Company" id="company" value="" placeholder="" maxlength="" size="" class="form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /></div></div><div class="form-group gcore-form-row" id="form-row-8"><label for="phone" class="control-label gcore-label-left">Phone</label>
<div class="gcore-input gcore-display-table" id="fin-phone"><input name="Phone" id="phone" value="" placeholder="" maxlength="" size="" class="validate['required'] form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /></div></div><div class="form-group gcore-form-row" id="form-row-10"><label for="email" class="control-label gcore-label-left">Email</label>
<div class="gcore-input gcore-display-table" id="fin-email"><input name="Email" id="email" value="" placeholder="" maxlength="" size="" class="validate['required','email'] form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /></div></div><div class="form-group gcore-form-row" id="form-row-11"><label for="comments" class="control-label gcore-label-left">Comments</label>
<div class="gcore-input gcore-display-table" id="fin-comments"><textarea name="Comments" id="comments" placeholder="" rows="3" cols="40" class="validate['required'] form-control A" title="" style="" data-wysiwyg="0" data-load-state="" data-tooltip=""></textarea></div></div><div class="form-group gcore-form-row" id="form-row-17"><label for="fld12" class="control-label gcore-label-left">Captcha</label>
<div class="gcore-subinput-container-wide" id="fitem14"><div class="gcore-input pull-left gcore-sub-input gcore-display-table" id="fin-fld13"><input placeholder="" maxlength="" size="" class="form-control A" title="" style="" type="text" name="captcha" id="fld13" /></div></div>
<div class="gcore-subinput-container-wide" id="fitem16"><div class="gcore-input pull-left gcore-sub-input gcore-display-table" id="fin-fld15">{captcha_img}</div></div></div><div class="form-group gcore-form-row" id="form-row-18"><div class="gcore-input gcore-display-table" id="fin-button6"><input name="button6" id="button6" type="submit" value="Submit" class="form-control A" style="" data-load-state="" /></div></div>
[attachment=1]ScreenShot-a216.png[/attachment][attachment=0]ScreenShot-a215.png[/attachment]
I found that section under SETUP, EMAIL 0. I've added some screenshots.
Mark
I found that section under SETUP, EMAIL 0. I've added some screenshots.
Mark
Hi Mark,
Please clear the email template box then save your form, v5 will then generate a new email template based on your current fields names.
Or you should make sure that the template matches your fields names, and this is case sensitive!
Regards,
Max
Please clear the email template box then save your form, v5 will then generate a new email template based on your current fields names.
Or you should make sure that the template matches your fields names, and this is case sensitive!
Regards,
Max
I cleared the form. Same results.
This is what I got in my inbox:
Name
Company
Phone
email
Comments
Poster's IP address:xx.xxx.xx.xxx
This is the re-generated code from debug which matches all the fields in the form.
This is what I got in my inbox:
Name
Company
Phone
Comments
Poster's IP address:xx.xxx.xx.xxx
This is the re-generated code from debug which matches all the fields in the form.
Array
(
[option] => com_chronoforms5
[chronoform] => contact
[event] => submit
[Name] => Mark
[Company] => none
[Phone] => <redacted>
[Email] => <redacted>
[Comments] => blah, blah, blah
[captcha] =>
[button6] => Submit
[ip_address] => <redacted>
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[0] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:<redacted>
[2] => Subject:visitor from Website
[3] => From name:Website
[4] => From email:<redacted>
[5] => Reply name:
[6] => Reply email:
[7] => Attachments:
[8] => Body:
<table>
<tbody>
<tr>
<td>Name</td>
<td></td>
</tr>
<tr>
<td>Company</td>
<td></td>
</tr>
<tr>
<td>Phone</td>
<td></td>
</tr>
<tr>
<td>email</td>
<td></td>
</tr>
<tr>
<td>Comments</td>
<td></td>
</tr>
</tbody>
</table>
Poster's IP address: <redacted>
)
)
What do you have in the email template box now ? the fields names between curly brackets should match the ones in the data array, and this is case sensitive!
Re-generated as suggested. This is the result.
<div class="form-group gcore-form-row" id="form-row-2"><div class="gcore-input gcore-display-table" id="fin-fld1"><br><strong>Please use this form to contact us.</strong><br>
If your need is urgent, please call 999.888.7777 <br><br></div></div><div class="form-group gcore-form-row" id="form-row-4"><label for="name" class="control-label gcore-label-left">Name</label>
<div class="gcore-input gcore-display-table" id="fin-name"><input name="Name" id="name" value="" placeholder="" maxlength="" size="" class="validate['required'] form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /><span class="help-block"><em>Your Full Name</em></span></div></div><div class="form-group gcore-form-row" id="form-row-6"><label for="company" class="control-label gcore-label-left">Company</label>
<div class="gcore-input gcore-display-table" id="fin-company"><input name="Company" id="company" value="" placeholder="" maxlength="" size="" class="form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /></div></div><div class="form-group gcore-form-row" id="form-row-8"><label for="phone" class="control-label gcore-label-left">Phone</label>
<div class="gcore-input gcore-display-table" id="fin-phone"><input name="Phone" id="phone" value="" placeholder="" maxlength="" size="" class="validate['required'] form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /></div></div><div class="form-group gcore-form-row" id="form-row-10"><label for="email" class="control-label gcore-label-left">Email</label>
<div class="gcore-input gcore-display-table" id="fin-email"><input name="Email" id="email" value="" placeholder="" maxlength="" size="" class="validate['required','email'] form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /></div></div><div class="form-group gcore-form-row" id="form-row-11"><label for="comments" class="control-label gcore-label-left">Comments</label>
<div class="gcore-input gcore-display-table" id="fin-comments"><textarea name="Comments" id="comments" placeholder="" rows="3" cols="40" class="validate['required'] form-control A" title="" style="" data-wysiwyg="0" data-load-state="" data-tooltip=""></textarea></div></div><div class="form-group gcore-form-row" id="form-row-17"><label for="fld12" class="control-label gcore-label-left">Captcha</label>
<div class="gcore-subinput-container-wide" id="fitem14"><div class="gcore-input pull-left gcore-sub-input gcore-display-table" id="fin-fld13"><input placeholder="" maxlength="" size="" class="form-control A" title="" style="" type="text" name="captcha" id="fld13" /></div></div>
<div class="gcore-subinput-container-wide" id="fitem16"><div class="gcore-input pull-left gcore-sub-input gcore-display-table" id="fin-fld15">{captcha_img}</div></div></div><div class="form-group gcore-form-row" id="form-row-18"><div class="gcore-input gcore-display-table" id="fin-button6"><input name="button6" id="button6" type="submit" value="Submit" class="form-control A" style="" data-load-state="" /></div></div>
That's the form code, I would like to check the "Email" template ? just to make sure that fields names there match the form fields names ?
Sorry - here it is:
<table>
<tbody>
<tr>
<td>Name</td>
<td>{name}</td>
</tr>
<tr>
<td>Company</td>
<td>{company}</td>
</tr>
<tr>
<td>Phone</td>
<td>{phone}</td>
</tr>
<tr>
<td>email</td>
<td>{email}</td>
</tr>
<tr>
<td>Comments</td>
<td>{comments}</td>
</tr>
</tbody>
</table>
Ok, you have {company} but the field name is "Company", please fix this and check if it works ?
Regards,
Max
Regards,
Max
Yes! Thank you! 😀
Everything but email works after I change the capitalization to match.
Any ideas on email?
Mark
Everything but email works after I change the capitalization to match.
Any ideas on email?
Mark
This topic is locked and no more replies can be posted.