- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 06:38 AM
Hi all,
I have a catalog item where I have allowed the user to be able to attach an excel doc. The excel doc should be of a certain format so I have scripted to be able to check it.
However, I have a blocker at the beginning as in my OnSubmit Client Script 'gel' is not being recognised in the following line:
var sys_id = gel('sysparm_item_guid').value
Is there a replacement for gel? Alternatively, how can I find the sys_id of the attached excel document?
Thank you,
G
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 06:42 AM
Hi @gunishi,
You could use g_form.getValue ('sysparm_item_guid');
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 06:42 AM
Hi @gunishi,
You could use g_form.getValue ('sysparm_item_guid');
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 06:56 AM