how to get display value in business rule for variable

Hafsa1
Mega Sage

I have a variable "u_currency_code" which is a choice field.

when I checked this value and displayvalue it is giving below result. seems from backend it was updated. I need to get this value in business rule or using dom manipulation. how to get it?

current.variable.u_currentcy_code="AED"

current.variable.u_currentcy_code.getDisplayValue()=null

 

Hafsa1_1-1744034274374.png

 

7 REPLIES 7

Ankur Bawiskar
Tera Patron

@Hafsa1 

if you want to get the choice value then current.variable.u_currentcy_code

if you want to get the choice label for the value selected then current.variable.u_currentcy_code.getDisplayValue()

If my response helped please mark it correct and close the thread so that it benefits future readers.

Hafsa1
Mega Sage

actually the backend value is same but display value are different

@Hafsa1 

I didn't get the meaning of this line ->

actually the backend value is same but display value are different

It could be the way how someone configured and kept the choice value and choice label same in question_choice table

Did you check that in the variable config screenshot in related list?

AnkurBawiskar_0-1744036664790.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

@Hafsa1 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.