Email Template > Generate Auto Template produces the code at the bottom
The text areas cause issues
here
<!--?php $editor = JFactory::getEditor(); echo $editor--->('investment _reduction', '', 600, 400, 12, 45, 1); ?>
and here
<div class="ccms_form_element cfdiv_textarea"><!--?php $editor = JFactory::getEditor(); echo $editor--->('investment _reduction', '', 600, 400, 12, 45, 1); ?>
Been fiddling with options to no avail
By default the contents of the text area doesn't get emailed.
Here's what is received
Red Tape Description
('description', '', 600, 400, 12, 45, 1); ?>
Investment Being Hampered
('investment _reduction', '', 600, 400, 12, 45, 1); ?>
Thanks
The text areas cause issues
here
<!--?php $editor = JFactory::getEditor(); echo $editor--->('investment _reduction', '', 600, 400, 12, 45, 1); ?>
and here
<div class="ccms_form_element cfdiv_textarea"><!--?php $editor = JFactory::getEditor(); echo $editor--->('investment _reduction', '', 600, 400, 12, 45, 1); ?>
Been fiddling with options to no avail
By default the contents of the text area doesn't get emailed.
Here's what is received
Red Tape Description
('description', '', 600, 400, 12, 45, 1); ?>
Investment Being Hampered
('investment _reduction', '', 600, 400, 12, 45, 1); ?>
Thanks
<div id="contact_name1_container_div" class="ccms_form_element cfdiv_text"><label><strong>Contact Name:</strong></label>
<br>
{contact_name}
<div class="clear"> </div>
</div>
<div id="email_address1_container_div" class="ccms_form_element cfdiv_text"><label><strong>Email Address:</strong></label>
<br>
{email_address}
<div class="clear"> </div>
</div>
<div id="input_text_31_container_div" class="ccms_form_element cfdiv_text"><label><strong>Organisation Name:</strong></label>
<br>
{input_text_3}
<div id="error-message-input_text_3"> </div>
</div>
<div id="industry_sector1_container_div" class="ccms_form_element cfdiv_checkboxgroup"><label><strong>Industry Sector:</strong></label>
<br>
{industry_sector}
<div style="float: left; clear: none;"> </div>
<div class="clear"> </div>
</div>
<div id="red_tape_category1_container_div" class="ccms_form_element cfdiv_checkboxgroup"><label><strong>Red Tape Category:</strong></label>
<br>
{red_tape_category}
<div style="float: left; clear: none;"> </div>
<div class="clear"> </div>
</div>
<div id="description1_container_div" class="ccms_form_element cfdiv_textarea"><label><strong>Red Tape Description</strong></label>
</div>
<div class="ccms_form_element cfdiv_textarea"><!--?php $editor = JFactory::getEditor(); echo $editor--->('description', '', 600, 400, 12, 45, 1); ?>
<div id="error-message-description"> </div>
</div>
<div id="investment_reduction1_container_div" class="ccms_form_element cfdiv_textarea"><label><strong>Investment Being Hampered</strong></label>
</div>
<div class="ccms_form_element cfdiv_textarea"><!--?php $editor = JFactory::getEditor(); echo $editor--->('investment _reduction', '', 600, 400, 12, 45, 1); ?>
<div class="clear"> </div>
</div>
<div id="hampered_investment1_container_div" class="ccms_form_element cfdiv_text"><label><strong>Value of Investment Being Hampered</strong></label>
</div>
<div class="ccms_form_element cfdiv_text">{hampered_investment}
<div class="clear"> </div>
</div>
<div id="investment_freed_up1_container_div" class="ccms_form_element cfdiv_text"><label><strong>Value of Investment Being Freed Up</strong></label>
</div>
<div class="ccms_form_element cfdiv_text">{investment_freed_up}
<div class="clear"> </div>
</div>
<div id="empty_container_div" class="ccms_form_element cfdiv_empty"> </div>
Hi yerg,
It looks as though something is converting some of the code so that
I don't know what would do that, nothing in ChronoForms that I've ever seen.
Is this using the ChronoForms plug-in? If so, what other non-standard Content plug-ins are you using?
Bob
It looks as though something is converting some of the code so that
<?php $editor = JFactory::getEditor(); echo $editor->display('investment _reduction', '', 600, 400, 12, 45, 1); ?>
becomes<!--?php $editor = JFactory::getEditor(); echo $editor--->('investment _reduction', '', 600, 400, 12, 45, 1); ?>
I don't know what would do that, nothing in ChronoForms that I've ever seen.
Is this using the ChronoForms plug-in? If so, what other non-standard Content plug-ins are you using?
Bob
Hi yerg,
It looks as though something is converting some of the code so that
I don't know what would do that, nothing in ChronoForms that I've ever seen.
Is this using the ChronoForms plug-in? If so, what other non-standard Content plug-ins are you using?
Bob
It looks as though something is converting some of the code so that
<?php $editor = JFactory::getEditor(); echo $editor->display('investment _reduction', '', 600, 400, 12, 45, 1); ?>
becomes<!--?php $editor = JFactory::getEditor(); echo $editor--->('investment _reduction', '', 600, 400, 12, 45, 1); ?>
I don't know what would do that, nothing in ChronoForms that I've ever seen.
Is this using the ChronoForms plug-in? If so, what other non-standard Content plug-ins are you using?
Bob
Hi yerg,
Do you see this problem if you use the Test Form button in the Form Wizard? Just trying to narrow down were the code might be being changed.
Bob
Do you see this problem if you use the Test Form button in the Form Wizard? Just trying to narrow down were the code might be being changed.
Bob
Ok
Using the popup or the generated page code form
Both fail
So I went onto the database and did a copy/paste of the correct code to bypass something happening with the save function
😢 😶
The page refreshed with
Dumb Question .. Why is there php in the email form?
No matter what I put into the form code to grab the content from the text area the email generated rejects the code?
Using the popup or the generated page code form
Both fail
So I went onto the database and did a copy/paste of the correct code to bypass something happening with the save function
😢 😶
The page refreshed with
Contact Name:
{contact_name}
Email Address:
{email_address}
Organisation Name:
{input_text_3}
Industry Sector:
{industry_sector}
Red Tape Category:
{red_tape_category}
Red Tape Description
Fatal error: Call to undefined function display() in /nfs/c10/h04/mnt/150682/domains/redtaperubbishbin.com.au/html/administrator/components/com_chronoforms/form_actions/email/email.php(52) : eval()'d code on line 18
Dumb Question .. Why is there php in the email form?
No matter what I put into the form code to grab the content from the text area the email generated rejects the code?
Copy/Paste the RAW code into the html view of the editor
Click "Update"
The code is corrupted
So if I put it in either way the form or the email is screwed.
You may use the curly brackets formula to get fields data from the form data array, e.g: {field_name}.
Why no curly brackets?
Why this code calling the editor display
<?php $editor = JFactory::getEditor(); echo $editor>display('description', '', 600, 400, 12, 45, 1); ?>
We don't need the editor we need to output of the text area field
Click "Update"
The code is corrupted
So if I put it in either way the form or the email is screwed.
You may use the curly brackets formula to get fields data from the form data array, e.g: {field_name}.
Why no curly brackets?
Why this code calling the editor display
<?php $editor = JFactory::getEditor(); echo $editor>display('description', '', 600, 400, 12, 45, 1); ?>
We don't need the editor we need to output of the text area field
Hi yerg,
I can't tell from this what the problem is that you are getting. You sent me a link to the front-end of the form - though I think your problem is with the Email template?
In the code you posted there is a - missing; it should be $editor->display( but I don't know where you are copying this from?
Bob
I can't tell from this what the problem is that you are getting. You sent me a link to the front-end of the form - though I think your problem is with the Email template?
In the code you posted there is a - missing; it should be $editor->display( but I don't know where you are copying this from?
Bob
This topic is locked and no more replies can be posted.