- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 12:12 PM
Have you check ed applies on catalog tasks??
0r share your full client script screenshot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 01:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 02:51 PM
we use following script
function onSubmit() {
try { //Works in non-portal ui
var attachments = document.getElementById('header_attachment_list_label');
if (attachments.style.visibility == 'hidden' || attachments.style.display == 'none' ) {
alert("Please be sure to attach all required documentation prior to submitting your request");
return false;
}
} catch(e) {
if ((this.document.getElementsByClassName('get-attachment').length == 0)) {
alert('Please add the required attachment before submitting this request.');
return false;
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 04:27 PM
Hi Vladimir,
Thank you but I tried it and it didn't make the attachment mandatory.
-Grace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 12:34 PM
Instead of:
attachment.addQuery('table_sys_id','sys_id');
could you please try with:
attachment.addQuery('table_sys_id',sys_id);
Also, please check this thread: Catalog service making Mandatory Attachment both application and SP