g_form.getReference() does not work in Service Portal

IB98
Giga Sage

I have a catalog client script that does not work on the portal. g_form.getReference() needs to be configured to I assume a script include and a client script. This is what I need:

* I have a record Producer with 2 variable sets (requestor, short description + comments) 

* I need the short description to auto-fill with the requester's information from that variable set. 

* I have used the getReference and it worked, but the portal does not like that option 

* I have the script bellow that works for the looped in user, but I need the Requester because that is dynamic. If I change the requester, the user in the short description does not get changed

find_real_file.pngfind_real_file.png

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use getReference() with callback method

OR

you can use GlideAjax

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Allen Andreas
Administrator
Administrator

Hi,

If you'd like to change this to GlideAjax, please refer to the this GlideAjax cheat sheet for an example.

If you get stuck on a specific piece, please reply back here with a copy of the script you've worked on thus far and what issues that you're having. Please include any log statement results as well.

https://community.servicenow.com/community?id=community_article&sys_id=9f7ce2e1dbd0dbc01dcaf3231f961...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!