Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 05:46 PM
Hi there
please advise , its calling a script include, just this part i am having trouble with on the cat item onload client script
Table sys_user_grmember
var thisUser = g_form.getValue("requested_for");
var encoded_query = 'group.nameSTARTSWITHlic_postman' + 'user=' + thisUser;
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 05:49 PM
@levino It is generally not a good practice to put GlideRecord query in the client script. Your encoded query can be fixed as follows.
var thisUser = g_form.getValue("requested_for");
var encoded_query = 'group.nameSTARTSWITHlic_postman' + '^user=' + thisUser;
Hope this helps.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 05:49 PM
@levino It is generally not a good practice to put GlideRecord query in the client script. Your encoded query can be fixed as follows.
var thisUser = g_form.getValue("requested_for");
var encoded_query = 'group.nameSTARTSWITHlic_postman' + '^user=' + thisUser;
Hope this helps.