• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Textarea - linebreaks??

Textarea - linebreaks?? 15 years 9 months ago #7860

  • G3MiNi
  • G3MiNi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
In RSFormPro ~ when users enter information into a textarea the resulting emails do not include line and paragraph breaks as entered by the user. Essentially it's just one long paragraph. Is there anyway for RSF to mimic line and paragraph breaks as entered by users when submitting a form?

Thanks!
Last Edit: 15 years 9 months ago by G3MiNi.
The administrator has disabled public write access.

Re:Textarea - linebreaks?? 15 years 9 months ago #7869

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

You can try enabling the WYSIWYG (What You See Is What You Get) option in the text area field.

Regards!
The administrator has disabled public write access.

Re:Textarea - linebreaks?? 15 years 9 months ago #7898

  • G3MiNi
  • G3MiNi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
I don't see this option available anywhere ... ???
The administrator has disabled public write access.

Re:Textarea - linebreaks?? 15 years 9 months ago #7901

  • bogdan
  • bogdan's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 122
  • Thank you received: 4
Hello ,

Please update to the latest revision of RSForm!Pro . When adding a new textarea component you will see the option to enable the WYSIWYG editor.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here

RSJoomla! Development Team
The administrator has disabled public write access.

Re:Textarea - linebreaks?? 15 years 7 months ago #8565

Is there any another solution to this problem as i don't want to use WYSIWYG Editor?
Thank's
The administrator has disabled public write access.

Re:Textarea - linebreaks?? 15 years 6 months ago #8614

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

You can try using this small workaround that will transform the new lines from the Text Area into blank row tags:
$_POST['form']['textarea']=nl2br($_POST['form']['textarea']);

the code line above can be placed in the "Scripts called on form process" area.Please note that you will have to replace the value 'textarea' from the code line with the name of your Text Area field in your form. For example if you have a Text Area field named "field1" then the code line will look like this:
$_POST['form']['field1']=nl2br($_POST['form']['field1']);
The administrator has disabled public write access.

Re:Textarea - linebreaks?? 14 years 9 months ago #11012

Hi, will the script works in RSForm! ?
the 'form', does it refer to the form name?
I've tried with RSForm! using both 'form' and 'myformname'. But all do not work.
Any help?
Thanks,
Robert
The administrator has disabled public write access.

Re:Textarea - linebreaks?? 13 years 4 months ago #15831

  • suganya
  • suganya's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
can u tel me how to use WYSIWYG editor in RSForm? i am new to joomla i dont know hw to do it. i hav dwld JCE component also. i dont know hw to integrate editor with RSForm. anyone pl help me.
The administrator has disabled public write access.

Re:Textarea - linebreaks?? 13 years 2 months ago #16326

  • bluebeep
  • bluebeep's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
Hi bogdanc,

Is there an update to this question. I have just tried placing your code in the PHP Scripts section under 'Script called on form process' but it didn't work.

I've changed the 'textarea' to the name of the Text Area and even tried changing the 'form' to the Form Name.

The problem is when a user types into the Text Area if there are no linebreaks then the form submits fine. If they hit a return and type some more, the form doesn't submit and the Validation Message pops up.

I don't want to use the WYSIWYG editor.

I don't mind it if the linebreaks are even stripped off when it finally shows up in the admin email. It would be nice to have the linebreaks, but I'm willing to live without if there is a possible solution.

Thanks!
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!