Hello,
We are using the textarea field to create lists with a specific format. I will list the format below.
Item1,
Item2,
Item3,
Item4
This list is entered within a field of type textarea. We are importing this list into a newly created page using the .renderAsHtml virtual function. What is happening is this list is being imported without the linebreaks which is not good for display purposes. I will show how it is being imported below.
Item1, Item2, Item3, Item4 and so on. These items can be very long in text and the list can contain many items. It is just easier to have the list display vertically instead of one after another. This issue when importing the list did not used to happen, but I am unsure if this is happening because we switched from a text to a textarea field. This change happened a while ago and we have just noticed this issue
Just discovered the .replaceCRLFWithBR virtual function. Will test that out here after our confluence outage is resolved
So the replaceCLRFWithBR virtual function doesn't work if you try calling it within a template. I was able to accomplish what I was trying to do by first creating a field of type text that is set with [entry.textareaField.replaceCRLFWithBR]. Then within my template, [entry.textListField.renderAsHtml] is used to get the list in the format that we are trying to use
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.