Have you check ed applies on catalog tasks??


0r share your full client script screenshot


Yes I checked mark that.


Here is the full screenshot:


find_real_file.png


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;


}


}


}


Hi Vladimir,



Thank you but I tried it and it didn't make the attachment mandatory.



-Grace


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