# Calling an expression in Field Value

**URL:** <https://forums.pega.com/t/calling-an-expression-in-field-value/4825>\
**Category:** User Experience\
**Tags:** financial-services, dev-designer-studio, 8-6-6, user-experience, pega-platform, senior-system-architect, data-model, system-architect\
**Created:** [July 25, 2023, 7:46am UTC](https://forums.pega.com/t/calling-an-expression-in-field-value/4825 "2023-07-25T07:46:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnupriyadarshiniiR](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@AnupriyadarshiniiR](https://forums.pega.com/u/AnupriyadarshiniiR)\
**Post date:** [July 25, 2023, 7:46am UTC](https://forums.pega.com/t/calling-an-expression-in-field-value/4825/1 "2023-07-25T07:46:20Z")

</div>

I have a requirement for language localization where the field value rule contains property reference. I was able to localize the constant text and looking for the solution to localize the value of property referred

Eg:

Field Value Name- StageStatus

Localized value- Status:{.CaseStatus}

Here i need to get the localized value of .CaseStatus property value

Tried to the call localization function in Field value as below

Status : @getLocalizedValue(“{.CaseStatus}”,“pyCaption”,tools) but in UI system takes the function also as text.

Could anyone suggest if we can localize the value of property reference in Field value.

Thanks

---

<div class="post-metadata">

**Author:** ![SaurabhG7134](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/saurabhg7134/32/17184_2.png) [@SaurabhG7134](https://forums.pega.com/u/SaurabhG7134)\
**Post date:** [July 26, 2023, 8:12am UTC](https://forums.pega.com/t/calling-an-expression-in-field-value/4825/2 "2023-07-26T08:12:22Z")

</div>

Hi @AnupriyadarshiniiR, you can create a field value which takes an input param (casestatus in this scenario) and display {1}.

Then, call your function alongside passing your param:

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

---

<div class="post-metadata">

**Author:** ![AnupriyadarshiniiR](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@AnupriyadarshiniiR](https://forums.pega.com/u/AnupriyadarshiniiR)\
**Post date:** [July 28, 2023, 7:01am UTC](https://forums.pega.com/t/calling-an-expression-in-field-value/4825/3 "2023-07-28T07:01:27Z")

</div>

Hi @SaurabhG7134 while trying this approach, field value is referred as Helper text in Section Rule.

Selecting created field value with parameter input in Helper Text didn’t show up with the parameter field to provide.

Could you please advise?

Thanks,

Anupriya

---

<div class="post-metadata">

**Author:** ![SaurabhG7134](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/saurabhg7134/32/17184_2.png) [@SaurabhG7134](https://forums.pega.com/u/SaurabhG7134)\
**Post date:** [July 28, 2023, 7:37am UTC](https://forums.pega.com/t/calling-an-expression-in-field-value/4825/4 "2023-07-28T07:37:43Z")

</div>

@AnupriyadarshiniiR do you have a DT where you can call this function before loading of the section? In that DT you can call this function and take the result in a property that can be then displayed on the UI.

In that case you can also set the param before calling the function.

---

<div class="post-metadata">

**Author:** ![San1618](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@San1618](https://forums.pega.com/u/San1618)\
**Post date:** [November 13, 2023, 8:48am UTC](https://forums.pega.com/t/calling-an-expression-in-field-value/4825/5 "2023-11-13T08:48:22Z")

</div>

@SaurabhG7134

Can you please elaborate it. In my case , I am updating the history field value, where {2} has to get the localised text. Can you give me solution how to insert the function in. Field value

---

<div class="post-metadata">

**Author:** ![San1618](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@San1618](https://forums.pega.com/u/San1618)\
**Post date:** [December 20, 2023, 8:52am UTC](https://forums.pega.com/t/calling-an-expression-in-field-value/4825/6 "2023-12-20T08:52:03Z")

</div>

@AnupriyadarshiniiR

we can use lookup control in field value, so that it will get localized text of property you provided in field value
