Question
Taxonic
NL
Last activity: 17 Jun 2024 15:36 EDT
How to pre-populate a rich-text field type with formatted text?
I have a property with type Text (paragraph) which is meant to show some formatted text as instruction on a view to the user. How can I pre-poluate this property using a data transform with formatted text that can be shown on the view in read-only?
Or if there is a better way to set and show formatted text on views in read-only, please let me know.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 17 Jun 2024 15:36 EDT
Pegasystems Inc.
IN
@Shahbaz -If the instructions are static then in case view level we can override the case instructions and add the content directly there.
Thank you.
Aaseya IT Services Pvt LTD
SA
You should be added the add the formatted text value in the Pre load DT of your particular screen. DT should allow you to use any HTML tags if required. You can use like below. Please try once
"<b>Your text here.</b>"
Taxonic
NL
Thanks, the issue is the formatted text i need to pre-populate is quite long. Just pasting it in DT property value is not very clean.
Looking for a more clean and robust way to do it. Is there a way to use a paragraph rule in DT to set the value? That way i can format the text in the paragraph rule and use it where needed.
Aaseya IT Services Pvt LTD
SA
Better way is to create the paragraph rule and reference that in the section rule. You may have a mix of static and dynamic content in the paragraph rule.
You can set the static content directly in the paragraph rule and for dynamic values, you can set them in some page and then reference those values in paragraph rule
Taxonic
NL
that would work, only thing is i have to replace my constellation view with a section.
There must be a way to achieve this in constellation right?
Aaseya IT Services Pvt LTD
SA
Not sure on the constellation part
Accepted Solution
Updated: 17 Jun 2024 15:36 EDT
Pegasystems Inc.
IN
@Shahbaz -If the instructions are static then in case view level we can override the case instructions and add the content directly there.
Thank you.
Taxonic
NL
@Priyanka Boga Thanks, for this particular situation the content is indeed static. The instruction field will be sufficient. Would still be good to know a way to populate dynamic content in Constellation view's as read-only texts.