0

I have a form with an image field, I want to remove the upload button and submit the image while the form is submitted. I not able to find out how to proceed further with this. Any help is greatly appreciated.

2

Look at the HTML of the page, find the id of the input/upload button, then hide it via a display:none; in your css will get you going quickly; otherwise, you will have to do a form_alter() in drupal to remove it from the form.

3
  • that is fine, what about the part where submit the image while the form is submitted?
    – karth
    Dec 30 '11 at 5:10
  • you still have the "choose" part of the form there, don't you? that allows you to choose the file from the client, and then when you submit the form, it grabs it. unless I am totally missing something here.
    – Jimajamma
    Dec 30 '11 at 5:13
  • oops ..my bad .. for some reason, it wasn't uploading the image previously with the form submit! thanks a ton though!
    – karth
    Dec 30 '11 at 5:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.