Regarding onsumbit client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 11:18 PM
Code for and what UI type should i need to create an on-behalf leave I must add an attachment (any type of file is valid, encrypted or not encrypted). and I try to create an on-behalf leave without an attachment I can't submit the request and the following message appears:
- "Uploading supporting document is mandatory"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 10:11 PM
can u provide the code for onsumbit catalog client script for the above story.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 11:23 PM
Hello @Apoorva A H
var sysid = g_form.getUniqueValue();
var attach = new GlideRecord('sys_attachment');
attach.addQuery('table_sys_id',sysid);
attach.query();
if(attach.next()){
alert("Uploading supporting document is mandatory");
}
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 10:09 PM
can u provide the code for onsumbit catalog client script for the above story.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 10:21 PM
Hello @Apoorva A H
function onSubmit(){
var sysid = g_form.getUniqueValue();
var attach = new GlideRecord('sys_attachment');
attach.addQuery('table_sys_id',sysid);
attach.query();
if(attach.next()){
alert("Uploading supporting document is mandatory");
}
}
follow the above code for onsumbit catalog client script.
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 10:57 PM
In catalog client script we cant able to use Gilde so asking to give other code.
