How get localized values for a field value when field values has parameters in it using getLocalizedText function?

Let’s say a field values has a parameter in it. {1}

Now I want to pass a property value as param at run time and get the localized value for that field value.

@(Pega-RULES:Utilities).getLocalizedText(“FieldValueName”,“pyCaption”,tools)

I have a few properties in workpage which i will pass as param based on condition.

How get localized values for a field value when field values has parameters in it using getLocalizedText function?

@Connect@Abicom Did you find any solution approach for this problem statement ?

@SANJAYKUMAR @Connect@Abicom

You must pass the field value names and the parameters with this syntax:

“FieldValueName”+“\t”+Param.Name

For your example:

@(Pega-RULES:Utilities).getLocalizedText(“FieldValueName\t”+Param.Name,“pyCaption”,tools)

@SARAH GODFREY Perfect. It works for me. Thank You.

@SANJAYKUMAR brilliant! :slight_smile: