1 Replies - 300 Views - Last Post: 22 February 2013 - 07:29 AM

#1 DarenR  Icon User is offline

  • D.I.C Lover

Reputation: 444
  • Posts: 3,073
  • Joined: 12-January 10

is there a way to disable a file input

Posted 22 February 2013 - 06:50 AM

My client wants to limit certain inputs to 1 file upload.
the form contains 30+ file uploads for specific items
some of the uploads are only allowed 1 file.

I have not found any information online on how to disable file upload inputs.

i have tried

 document.getElementById('fname_Subject_Front').display = none;
 document.getElementById('fname_Subject_Front').disabled = true;

and a few other methods


i am assuming since there can be malicious intent wit hthis type of coding that it is not allowed by javascript.

thanks for looking

Is This A Good Question/Topic? 0
  • +

Replies To: is there a way to disable a file input

#2 DarenR  Icon User is offline

  • D.I.C Lover

Reputation: 444
  • Posts: 3,073
  • Joined: 12-January 10

Re: is there a way to disable a file input

Posted 22 February 2013 - 07:29 AM

Never mind-- i solved it---

someone wrote the wrong metatag in the orginial code, that's why it wasnt pulling from the database correctly or disabling the inputs.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1