Paragraph Wrapping

jholland3XDLM
Advocate
Advocate

Paragraph Wrapping

jholland3XDLM
Advocate
Advocate

I have a field in the Item Details tab set to the paragraph data type. It will map to our ERP system. Our ERP system cannot have more than 50 characters per line, but has unlimited lines. I tried setting the display width to 50; but that does not seem to do anything in the interface. How can I auto wrap a paragraph field after 50 characters?

0 Likes
Reply
Accepted solutions (1)
549 Views
2 Replies
Replies (2)

philipfrench
Collaborator
Collaborator
Accepted solution

You cannot.

You could write on-edit script to parse the HTML in the paragraph field, remove the tags, chop the lines at 50 chars, and write the updated values back to the field.

But that is going to be a very weird experience for the user, having his input corrupted every time he saves.

 

Could you use the grid tab, with a single column of string field length 50 chars? 

 

I think your best result will be to remove the html formatting and chop the lines, in the integration as you write it to ERP.

0 Likes

jholland3XDLM
Advocate
Advocate

Solution accepted. For the integration (a phase two project), would I just look for the 50th character then backup until I find a space and chop there?