Is there a way that when users enter content in the textarea that it's submitted the way it's entered. What I mean specifically is if they add a return/linebreak so that the data goes on separate lines it is emailed that way.
Thanks!!
Thanks!!
Hi LikeStuff,
I recall that running the content through nl2br fixed this. Try a Custom Code action in the On Submit event with code like this:
Bob
I recall that running the content through nl2br fixed this. Try a Custom Code action in the On Submit event with code like this:
<?php
$form->data['this_textarea'] = nl2br($form->data['this_textarea']);
?>
Bob
Thank you. It's strange that I tested it on one form and it worked then I tried using it on another form and it doesn't. I can't figure out what the difference would be between forms why it works on one and not on the other.
I also noticed that it goes on the "On Submit > On Fail" - I hope that's where it should be as I tried moving it outside the "OnFail" but can't. Please see pic.
Thanks in advance!!
I also noticed that it goes on the "On Submit > On Fail" - I hope that's where it should be as I tried moving it outside the "OnFail" but can't. Please see pic.
Thanks in advance!!
Hi LikeStuff,
I'm pretty certain that having the action after an Event Loop means that it will never be executed.
You also don't want this running if the Check Captcha fails.
Create a new action after the Check Captcha action. Copy and paste over the code. Then delete the one in the OnFail box.
Bob
I'm pretty certain that having the action after an Event Loop means that it will never be executed.
You also don't want this running if the Check Captcha fails.
Create a new action after the Check Captcha action. Copy and paste over the code. Then delete the one in the OnFail box.
Bob
Hi Greyhead,
I'm wondering why this isn't working.. i have no captcha and upload file,, both of those are disabled and i'm using chronoform v4 with Joomla! 2.5.11..
it is placed on the ON Submit Event - Custom Code..any ideas why?
Also tried both html and text "As send" settings on the email..
Thanks again
I'm wondering why this isn't working.. i have no captcha and upload file,, both of those are disabled and i'm using chronoform v4 with Joomla! 2.5.11..
it is placed on the ON Submit Event - Custom Code..any ideas why?
Also tried both html and text "As send" settings on the email..
Thanks again
Hi. I have a very basic question: when you said below
Where do I enter this? What screen do I find the "On Submit" event? I am using the "Easy Form Wizard" for editing my form.
Thanks!
Try a Custom Code action in the On Submit event with code like this:
Where do I enter this? What screen do I find the "On Submit" event? I am using the "Easy Form Wizard" for editing my form.
Thanks!
Hi bobjones,
In the Easy Wizard you can use the boxes on the Others | Custom PHP Code tab.
Bob
In the Easy Wizard you can use the boxes on the Others | Custom PHP Code tab.
Bob
Thank you for the quick reply and apologies in the delay in replying, as I wanted to make sure I had the latest version of ChronoForms installed before I followed up. That worked!
Hi ronjb,
What do you see if you add a Debugger or two?
Bob
Array
(
[chronoform] => Service_Form
[event] => submit
[Itemid] => 175
[option] => com_content
[lang] => services
[view] => article
[id] => 41
[input_checkbox_group_36] => MD-Profile Non-Uniformity
,Curl
[input_checkbox_group_39] => Fiber Orientation
,Pin Holes and Air Bubbles
[input_checkbox_group_30] => Fourdrinier Optimum Foil Blades Settings
,Analysing & Troubleshooting Press & Felt Cond. Systems
[input_checkbox_group_33] => Optimum Dandy Roll Operation
,Analysing a& Troubleshooting Dryer Section
[input_textarea_6] => taskdjakjsd aksdjaklsjd asldj aklsdj kajsdk jaskldj aksjd klasjdk ljaskdj alksjdlk ajskdlj aklsjdk jaskdjasjdklasjd.
askjdlkasjdkalsjdasjdkajsdk jaksjdk lajsdkl jaksljd lkasjdlk jaksjd alsjd lkajsdkl jaklsjdkl ajskldj klajskdj aklsjd jkalsjdklasjdlk.
[input_text_1] => ron nald
[input_text_2] => ronn.jb@gmail.com
[input_text_43] => none
[input_select_44] => Philippines
[input_submit_11] => Submit Your Request
[a69be13e5d89412093273bfc8276af48] => 1
[this_textarea] =>
)
I checked the email and there's no gap on the text area..
Array
(
[chronoform] => Service_Form
[event] => submit
[Itemid] => 175
[option] => com_content
[lang] => services
[view] => article
[id] => 41
[input_checkbox_group_36] => Sheet Formation
,MD-Profile Non-Uniformity
[input_checkbox_group_39] => CD-Profile Non-Uniformity
,Pin Holes and Air Bubbles
[input_checkbox_group_30] => Fourdrinier Optimum Foil Blades Settings
,Analysing & Troubleshooting Press & Felt Cond. Systems
[input_checkbox_group_33] => Optimum Dandy Roll Operation
,Analysing a& Troubleshooting Dryer Section
[input_textarea_6] => asdasd asd asd asd asd asd asd
asdasdasda asd asd asd asd asd asd asd asd asd
[input_text_1] => ron jb
[input_text_2] => ronn.jb@gmail.com
[input_text_43] => none
[input_select_44] => Philippines
[input_submit_11] => Submit Your Request
[b70655ccccbfa6c38e68427202adb8ff] => 1
[this_textarea] =>
)
Validation Errors:
Array
(
)
Thank you for your interest
We will be in touch wih you shortly, usually within one to two days.
Debug Data
email
11
Result
An email has been SENT successfully from (Papermaking Problems){input_text_2} to nald.jb@gmail.com
Body
Areas of Papermaking Problems Client have.
Problem Category
Sheet Formation
,MD-Profile Non-Uniformity
CD-Profile Non-Uniformity
,Pin Holes and Air Bubbles
Other Categories
Fourdrinier Optimum Foil Blades Settings
,Analysing & Troubleshooting Press & Felt Cond. Systems
Optimum Dandy Roll Operation
,Analysing a& Troubleshooting Dryer Section
Customer Specified Problems
asdasd asd asd asd asd asd asd asdasdasda asd asd asd asd asd asd asd asd asd
Client Name: ron jb
Client Email: ronn.jb@gmail.com
Company Name: none
Country: Philippines
Submitted by 112.202.22.94
Attachments
array ( )
redirect_user
redirect_user_target_url: index.php/what-we-do-successful/#rt-content-bottom
Redirect URL (click to continue):
index.php/what-we-do-successful/#rt-content-bottom
Sorry i didn't know which one should i copy so i just copied everything, i hope this is right,,
This topic is locked and no more replies can be posted.