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.
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
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.
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
@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.
@Shahbaz maybe you could create a Data Type and save all messages with html elements in it.
Than use a Data Page to add the text based on whichever filter criteria you have pre-designed. There is no need to add large texts directly into a DT.
The Rich Text property will act as an View in Read Only Mode. Play with the html elements in order to get the best presentation.