Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2025 10:31 PM
Hi @preethigovi ,
Please use script below and try.
function onSubmit() {
var reportsToManager = g_form.getValue('does_the_proposed_delegate_report_to_the_manager');
if (reportsToManager == 'No') {
if (!g_form.hasAttachments()) {
g_form.addErrorMessage(getMessage('You must attach a confirmation message from your proposed delegates manager with this ticket before proceeding.'));
return false;
}
}
// If the answer is 'Yes', or if it's 'No' and attachments DO exist, allow submission.
return true;
}
Regards,
Vishal