javascript: gs.getUser().getRecord().getValue('location') is not Working in Record Producer Kingston

Chaisai
Kilo Expert

Hello There,

 

I have created a Location reference field with table as cmn_location and in the default value i have given as javascript: gs.getUser().getRecord().getValue('location') [have even tried with  javascript: gs.getUser().getLocation() but no luck] which is not working in my Work instance which runs on Kingston. When i try same on my personal Kingston instance it is working as expected. Much appreciated if any suggestions on how to work around on this..

 

Thanks in advance!

11 REPLIES 11

Bingo.  Thanks Reddy!

SN27
Giga Expert

Use below,

var user = javascript: gs.getUser().getRecord().getValue("field_name");