Set value on reference field on record producer via client script

snowuser4
Tera Expert

Hello all,

I am trying to set a value on a field which is reference field( referring to user table) based on a choice field vis catalog client script and not successful so far, can some one please help:

find_real_file.png

 

1 ACCEPTED SOLUTION

Murthy Ch
Giga Sage

@snowuser@18 

Do you want to set the same user whenever selects New Hire?

If yes go to user table and copy the sys_id of that user and copy the name of the user.

Ex:

g_form.setValue("subject_person","75826bf03710200044e0bfc8bcbe5d2b","Fred Kunde"); value+displayValue

If its dynamic use Script Include.

 

Thanks,

Murthy

Thanks,
Murthy

View solution in original post

5 REPLIES 5

snowuser4
Tera Expert

Thank you every one for your response, providing sys id and display value of the record worked for me, I also I had some issues with on change variable I was using debugging helped me to figure out that,