The CreatorCon Call for Content is officially open! Get started here.

Show name instead of sys_id in string field populated by variable

ebaileyybs
Tera Expert

Hi,

I have a variable which is referencing a list of data in a bespoke table (x_yobs_regulatory_regulatory_breach_tier_1)

The variable is tier_1

find_real_file.png

I want the name of the data entry to appear in a mapped string field on the associated table instead of it's sys_id. The field needs to be string for another purpose so this cannot be changed.

find_real_file.png

Currently when the form is submitted it show the sys_id as below but I need it show show the label/name

find_real_file.png

How can i achieve this?

Thanks in advance.

Emma

26 REPLIES 26

Hi David,



No it's needs to be string for other reasons...



Thanks for your reply.



Emma


Hi Emma,



Try this line of code instead:



current.tier_1.setDisplayValue(product.tier_1.name);



I had a similar issue recently and this resolved it for me.


Hi, thanks for your reply - still not working I'm afraid.


You could try:



current.tier_1.setValue(product.tier_1.name);



(just changed from setDisplayValue to setValue)


Another possibility :



product.tier_1.getValue(current.tier_1.name);