- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 10:23 AM
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:
Client Script:
Field:
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 10:32 AM
just change the line and check,
g_scratchpad.last_name=gr.getValue('last_name');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 10:26 AM
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');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 10:32 AM
just change the line and check,
g_scratchpad.last_name=gr.getValue('last_name');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 10:45 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 10:47 AM
Good catch. Some times the simple things...
-Brian