New topic Closed topic
avatar image
1
new line in text fiel
By Created , last editted

I'm trying to add a line of text to a multi-line text field in the database using an action. So let's say this is the content of the text field: 

"hobby: tennis

languages: Dutch"

And i want to use an action to add a third line  "Hobby: golf".

i concatenate the old and new values with + but i want to add a 'new line' in between: 

update field: [old value] + 'newline' + [new value] 

I tried <br> and \n but they are just added to the text field exactly like that. No new line.

I also tried " " and that works partly: when i view the field in the (back-end) details screen, the added text is shown on a new line. 

But when i edit the text field, this string (" ") is visible. This does not look nice and will confuse users. 


Does anyone know of any other method of injecting a newline in a multi-line text field from an action?  


I'm trying to add a line of text to a multi-line text field in the database using an action. So let's say this is the content of the text field: 

"hobby: tennis

languages: Dutch"

And i want to use an action to add a third line  "Hobby: golf".

i concatenate the old and new values with + but i want to add a 'new line' in between: 

update field: [old value] + 'newline' + [new value] 

I tried <br> and \n but they are just added to the text field exactly like that. No new line.

I also tried " " and that works partly: when i view the field in the (back-end) details screen, the added text is shown on a new line. 

But when i edit the text field, this string (" ") is visible. This does not look nice and will confuse users. 


Does anyone know of any other method of injecting a newline in a multi-line text field from an action?  

Answers
Sort by:

This topic is closed.