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

Scratchpad undefined value

terp
Giga Contributor

I am trying to populate a field(s) using Scratchpad but I am getting an undefined value passing through.   Created an on Display BR and an onLoad client script.   Any help would be most welcomed.  

Business Rule:

find_real_file.png

Client Script:

find_real_file.png

Field:

find_real_file.png

1 ACCEPTED SOLUTION

BALAJI40
Mega Sage

just change the line and check,


g_scratchpad.last_name=gr.getValue('last_name');


View solution in original post

9 REPLIES 9

Chuck Tomasi
Tera Patron

I think you have those backwards. The g_form calls are in the client script and the GlideRecord query is in the business rule. Given that assumption,



put your gr.getValue() element in quotes in the business rule.



g_scratchpad = gr.getValue('last_name');


BALAJI40
Mega Sage

just change the line and check,


g_scratchpad.last_name=gr.getValue('last_name');


He he he. That's what I said. Either way, I'm glad you got your question answered. Thank you for participating in the community.


Good catch.   Some times the simple things...



-Brian