- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 11:51 PM
I need to fetch the sysID of the HR case for a record producer submitted using client script. Using this sysID i am checking if the attachment has to be added while submitting the form for which i am gliding the attachment table.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 12:34 AM - edited 05-10-2024 12:36 AM
Hi @Kushi ,
You can try this with the below script
function onSubmit() {
if (g_form.getValue('has_post') == 'yes') {
if (this.document.getElementsByClassName('get-attachment').length == 0) {
alert("Attachment Mandatory. Please attach supporting documents");
return false;
}
} else {
return true;
}
}
Please mark helpful or accept solution if it solves your issue, Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 12:34 AM - edited 05-10-2024 12:36 AM
Hi @Kushi ,
You can try this with the below script
function onSubmit() {
if (g_form.getValue('has_post') == 'yes') {
if (this.document.getElementsByClassName('get-attachment').length == 0) {
alert("Attachment Mandatory. Please attach supporting documents");
return false;
}
} else {
return true;
}
}
Please mark helpful or accept solution if it solves your issue, Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 12:58 AM
Thankyou. This script works 🙂