Hello I have an issue working with a file field that accept more than one file
When the file field is empty there is no problem and is possible to add new files without problem.
But when there is one file in the field the summit button is hide.

In order to fix I modified the editablefields.js
// There is only one editable field in that form, we can hide the submit
// button.
if ($this.find('input[type=file]')) {
} else if ($this.find('input[type=text],textarea,select').length == 1) {
$this.find('input.form-submit').hide();
$this.find('input[type=text],textarea,select').change(function() {
$this.find('input.form-submit').triggerHandler('click');
});
But I don't if that is the best way to solved
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Afterchance.png | 21.2 KB | zatarain21 |
| Problem1.png | 18.16 KB | zatarain21 |
Comments
Comment #1
zatarain21 commentedHere the image with the result after the change
Comment #2
johnvI think you have the same problem as #1398946: Hiding submit button is not specific enough
Comment #3
noahadler commentedI have the same issue, and this patch helps. The only thing I notice is that when the multi-value field is set to 1, the Save button is superfluous and the whereas with this patch applied and the field set to Unlimited values, the uploaded files don't get attached to the field unless the Save button is pressed.
Comment #3.0
noahadler commentedI tried to add a image to ilustrate the change