I have a strange 'error' that happens in my webform.
It's not really an error, because my form is working fine.
It's more like a strange behavior.

Let me try to explain:

I have a couple of select options boxes with conditional rules.

  • Parent: Country
  • Provinces/Region: Dependent on the country selection.

And a file upload box being a normal picture upload feature, but mandatory.
So the normal handling is working great for selecting the wanted file.

Now comes the fun.
If i hit the 'Upload' button, ALL the 'Select Options' expand in their field.
That means that every possible selection is exposed as a list in the field.
So my form becomes very long and confusing for the user.
(Have a look at the pictures to clarify.)
Like said before, all is working well, when i hit the Submit button the form is sent like it should be and the picture is attached.
Even when i don't use the 'Upload' button.

Now the question is: is there a way to just remove or hide the 'Upload' button for the file field in the webform?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

VBN’s picture

Issue summary: View changes
DanChadwick’s picture

Status: Active » Closed (won't fix)

You might try the latest -3.x, or even better, -4.x. This issue won't be fixed in the -3.x branch is it is receiving only critical fixes at this point.

That said, in looking at the file upload issues in the webform queue, I'm wondering if we should just eliminate the upload button. If you are a developer, you can do this yourself. You can also hide the button with CSS.

I'm closing this as a 3.x bug, but if it still happens in 4.x (where the conditional logic is quite different), please re-open.