| Post |
|
Guest
| Bob 8:07 pm July 19, 2008
| |
|
|
Please replace the ??? with your data!
- Your URL: http://localhost
- The browser used: FF 3.0
- cforms version: 8.5.2
- Your Wordpress version: 2.6
[desc]: Great plugin! Thank Oliver.
Just one question about Multiple line of text form. I use it to post an entry on my blog. here is image for my multiple line of text form. 
Problem here, when the data posted.. the text will look like
Lorem Ipsum 1 Lorem Ipsum 2 Lorem Ipsum 3 Lorem Ipsum 4 Lorem Ipsum 5 Lorem Ipsum5
How to make it look like
Lorem Ipsum 1
Lorem Ipsum 2
Lorem Ipsum 3
Lorem Ipsum 4
Lorem Ipsum 5
Lorem Ipsum5
I want it look same like i wrote on the form. Any clues? 
|
|
|
Guest
| Bob 8:46 pm July 19, 2008
| |
|
|
hmmmm.. i just looked into my Custom Fields. Its same :(
 
I think this problem is not come from cforms. btw, any clues how to make it look like
<p>Lorem Ipsum 1</p>
<p>Lorem Ipsum 2</p>
<p>Lorem Ipsum 3</p>
or
Lorem Ipsum 1 <br />
Lorem Ipsum 2 <br />
Lorem Ipsum 3 <br />
in the custom fields.
|
|
|
Admin
| Oliver Munich, Germany posts 6094 9:42 pm July 19, 2008
| |
|
|
that's odd, because when you enter lines and line breaks in an "multiple line text field" it should be transmitted as such. not sure why all line breaks are being removed in your case…
|
|
|
|
|
Guest
| Bob 9:55 pm July 19, 2008
| |
|
|
hmmm.. it's possible to enable html code to the fields?
example i write
testing 1
testing 2
testing3
on the multi-text.
then it will automated add the html code to the custom fields?
<p>testing 1</p>
<p>testing 2</p>
<p>testing 3</p>
|
|
|
Admin
| Oliver Munich, Germany posts 6094 10:01 pm July 19, 2008
| |
|
|
You can do this via my-functions.php and the filter routines. Again, <br/> should be inserted already after a line break, have you tried different browsers?
|
|
|
|
|
Guest
| Bob 10:43 pm July 19, 2008
| |
|
|

my-functions.php.
add_post_meta($ppost_id, 'MyForm',$form['MyForm']);
where should i put the <br> ? 
|
|
|
Admin
| Oliver Munich, Germany posts 6094 10:52 pm July 19, 2008
| |
|
|
Not sure what you need the 'add_post_meta' for, here is what I would do:
- enable the .._filter functions
- enabled & configure @mail('your@email.com', 'cforms my_act…
- adjust 'sendbutton3' to match your form
- test submit a form
- see what the actual $POSTdata includes and what the exact field in question is
once done, you can start manipulating the right fields in $POSTdata, e.g.:
$POSTdata['cf3_field_3'] = str_replace("\\n",'<br/>',$POSTdata['cf3_field_3']);
if cf3_field_3 was your text field (non ajax _filter routine)
|
|
|
|
|
Guest
| Bob 11:17 pm July 19, 2008
| |
|
|
Thank you!! Problem solved. Great support! 
|
|