Developer forum

Forum » Swift » Custom display group field - render raw value

Custom display group field - render raw value

Joakim
Reply

Hi,

Our client is running swift2 on 10.21.10 and we've create a number of product custom fields(Long text). I'm wondering if there's a way to render the raw value(including line breaks etc)?


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Not out of the box.

But you can easily add a bit of css to the container that holds the text:

white-space: pre;

Then the browser will respect the line breaks from the text area.

 
Joakim
Reply

But the issue is that the text is recieved in the front end already formatted, hence there are no line breaks to respect. So simply adding that styling wont solve the issue:

 
Joakim
Reply

bump

 

You must be logged in to post in the forum