Show display text define in property with a server tag

Hi community,

I have define in my property a Table type datapage.

This property appear correctly in a section if I use for example the Radio buttons control with type “as defined on property” :

Question.png

Now, I want to reference this property in a paragraph and see the display text and not the value.

<pega:reference name=“.MyProperty”></pega:reference>

=> 2 is displayed and not Two

Is there a format ?

Hi @NicolasC3608, you can use @getLocalizedValue function to get the prompt value.

So, we can use this function in a DT and store the localized value in a different property and then show use that very property in the paragraph rule.

Hope this helps!

Thanks,

Saurabh.

Hi @SaurabhG7134,

thank you for your reply,

no need to create a new property, the format exists and matches my need. it’s perfect thanks

<pega:reference name=“.MyProperty” format="getLocalizedValue "></pega:reference>

​​​​​​​