You are viewing limited content. For full access, please sign in.

Question

Question

Upload Buttons Reappear

asked on December 4, 2018

I have this form where the only upload required is the Supplier-Acknowledged Approval Form:

The weird thing is that the other Upload buttons reappear once I do the upload required for this form:

Anyone else have this problem. The user cannot do anything with those buttons because they are read-only, but why do they appear and can I make it stop?

I have them set to read-only:

and the input field should be hidden:

$(document).ready(function(){

//Hide upload buttons
  $('.poUpload input').hide();
  $('.prUpload input').hide();
  $('.attachments input').hide();

});  //close document.ready

 

0 0

Answer

SELECTED ANSWER
replied on December 4, 2018 Show version history

What version are you running? I haven't been able to reproduce the issue.

However, you could probably do this with just CSS instead of JavaScript

For example, the following would hide all readonly file upload buttons

input.fileuploader[readonly] {
  display:none !important;
}

If that is too broad, you could add the classes you're targeting with your JQuery selectors

.poUpload input[readonly],
.prUpload input[readonly],
.attachments input[readonly] {
  display:none !important;
}

If the JavaScript you have now is executing without any conditions, then you might not even need the readonly attribute selector.

0 0
replied on December 4, 2018

I removed the JavaScript and replaced that code with the first suggestion above! Worked like a charm. Thank you!!!

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.