g_form.getElement('sysparm_item_guid').value isn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 06:16 AM
i need to get the sys_id of the uploaded attachment from onsubmit catalog client but
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 06:27 AM
Hi @Aya Hassan,
Quick clarification. Are you attempting this in the native view or Portal? Additionally, when you say from an 'onSubmit catalog client' - are you referring to that you need to check this before submitting the form?
Use the following syntax in a native view from the client script:
g_form.getValue('sysparm_item_guid');
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 06:29 AM
i need it on portal , i have catalog item to upload attachment , after uploading i need the sys id for this attachment to do some logic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 03:43 AM
@Aya Hassan were you able to get the sysid of attachment, I am also trying to get this, but don't find any solution.