⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Newlines in text edit



carugnom
  • profile picture
  • Member

Posted 11 February 2015 - 10:26 AM

Hello, I'm using a text datatype to allow the user to enter some free text.

I disable the edit controls by calling unset_texteditor() and it works.

If typed text has newlines, when later I go to the record's view, the text is shown in a single line.

However, in edit mode the newlines are kept.

So, is there a way to show the text with newlines in the record's view ?

Thanks !


Amit Shah
  • profile picture
  • Member

Posted 12 February 2015 - 06:07 AM

well my friend..

 

will recommend u patching your base library with the following code as shared in the this url

/topic/2525-callback-addedit-field-changes-the-display-on-the-read-method/

 

from this - u will get the information as how to create a callback_read_field function and then u can use it... to format the text according to the business rule that suites you.

 

Happy GCing :)