Announcement

Collapse
No announcement yet.

Hide browse button and field in upload

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hide browse button and field in upload

    Is it possible to hide the browse button and upload field as well as the delete checkbox and label? Even if I set disabled on insert/update you can still browse and upload a record. For the standard user, this can cause problems replacing uploads and such. I want to be able to display the link of the upload exactly like it is in a grid. I don't understand why it isn't this way already. If it works in a grid why can it not be the same in a form?

  • #2
    WHat do you want to achieve. Just a downloadfield in a form? Then go to the edit fields and set the readonly flag.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      It is a field of type Document (Database). If I make it read only in the edit fields section then it doesn't show up in the form at all. It is in a block by itself. The block is still there but no field inside, it still has the field label though. I just want to click a link of the file name like in a grid to download without the browse button and field.

      Comment


      • #4
        I figured out how to block insertion of new file. I just set the allowed extensions to .abc. I found a post on hiding the delete checkbox -> Click. I can't quite seem to find the proper classes or ids in the code and all I get is a blank form when ran. I tried events and the javascript section with no luck. I need more instructions from that post.

        Comment


        • #5
          With the code form the post linked above, I have it working somewhat. I'm using it to try to hide the input box but It hides all input boxes. The input box has ids not classes, or I can;t find what is what. I'm using the source explorer in firefox. Is there a different sure fire way to get the proper class names?

          Comment


          • #6
            It's a reasonable requirement and I need to do this too.

            For example, the admin upload and save the records, and when the other users open the records, I will hide the "delete" "update" button of the form, and also want to hide the "select file", "upload file" and the checkbox for the current user. When the admin login and open the records, it can show up.

            How to do that? (of course it cannot be saved when the delete, update button is hide. But a system should not give the user to select files since he cannot save it to database.)

            Comment


            • #7
              Originally posted by ancr2001 View Post
              With the code form the post linked above, I have it working somewhat. I'm using it to try to hide the input box but It hides all input boxes. The input box has ids not classes, or I can;t find what is what. I'm using the source explorer in firefox. Is there a different sure fire way to get the proper class names?
              In Firefox, right click on the object and select "Inspect Element"


              Also, check out this link for more info (i.e. turning off by ID instead of class).

              Dave
              Last edited by daveprue; 03-16-2015, 04:16 AM.
              Dave Prue
              Code Whisperer
              Lahar International Corp
              www.lahar.net

              Comment

              Working...
              X