Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Recently all of my forms with file upload fields reset those fields to the top of my forms, overlaying the previous layout I set with Arrange Fields. When I went in to put them back in their proper place, I was unable to drag them. There is no longer anything to grab onto.
This may have had something to do with a recent update to Drupal 7.12 core, which if i recall added ajax style file upload capability?
I was hoping you had heard of this issue, although recent searches yielded nothing. Any thoughts or ideas would be appreciated.
Thank you.
Comments
Comment #1
richardp CreditAttribution: richardp commentedYikes-- sorry, no I haven't heard of this issue yet. That definitely sounds like a javascript conflict to me. It sounds like the "draggable" behavior is never being attached to those fields.
I have not yet updated to D7.12, is there any way to turn off the ajax-style file uploads? And if so, does that fix the problem?
Also, are there any other modules you might have installed along with D7.12, which might possibly be interfering?
Richard
Comment #2
lr25plt CreditAttribution: lr25plt commentedRichard,
Thanks for the quick response and support. I have no idea how to turn this capability off or alter whatever is interfering. I did however temporarily solve the problem and gain control over the positioning again by putting my file uploads into a field set. However you wish to label the status of this issue is fine by me, but I definitely see something interfering with an otherwise perfectly fine module.
I'll check back for any other user's comments regarding the issue.
Bill
Comment #3
richardp CreditAttribution: richardp commentedWell, I think I will keep this as Active until I can test it out on my test box. If it is some conflict with Drupal core, that would be a pretty serious problem for this module.
Comment #4
Ron Williams CreditAttribution: Ron Williams commentedI also recently had this error appear.
Comment #5
richardp CreditAttribution: richardp commentedWell, I tested and I cannot reproduce. I am using Drupal 7.12. I enabled the File module, to let me do file fields, and I created a test file field with default options selected. I was able to drag it around, save, and rearrange wherever I liked.
Is there some other File module I should use?
Richard
Comment #6
lr25plt CreditAttribution: lr25plt commentedHi Richard,
I wish I could help more. Maybe Ron Wilson, posting above can add more about what his circumstances were. I think you replicated what I am doing exactly, so I'll let you know if I notice any changes in the future, but there must be something happening if there are two of us.
Thank you,
Bill
Comment #7
Ron Williams CreditAttribution: Ron Williams commented@richardp: I tested again with a new webform and the same error occurred within Drupal's admin theme after updating core + modules to the latest version. No console errors appeared.
Comment #8
richardp CreditAttribution: richardp commentedI think I misunderstood, or we are talking about different things. I tested the File field, part of Drupal core. Are you guys using Webform instead? Is this a Webform add-on, and if so, please tell me what version of Webform you are using.
Richard
Comment #9
seemas CreditAttribution: seemas commentedHi Richard,
I also can not drag webform filefield
Clean D7.12 Installation webform 7.x-3.17 + Arrange Fields 7.x-1.8
Comment #10
Ron Williams CreditAttribution: Ron Williams commentedYes, this is within the webform addon.
Comment #11
sah62 CreditAttribution: sah62 commentedI'm seeing the same behavior with a webform: all fields work fine except for file upload fields, which get moved to the top of the form and then can't be dragged. I'm running Drupal 7.14, Arrange Fields 7.x-1.8, and Webform 7.x-3.18.
Comment #12
richardp CreditAttribution: richardp commentedOkay everyone, I'm sorry about the delay on this. I think I may have a fix. Please try the latest version, 7.x-1.9. Basically, I had to change the way that the draggable wrappers are added around elements.
I tested, and on my test machine, I can indeed move around the file upload field.
Remember to leave some space around it, since if the user tries to upload an invalid file, that is where the message will be displayed.
Richard
Comment #13
richardp CreditAttribution: richardp commented(changing title to be more specific)
Comment #14
lr25plt CreditAttribution: lr25plt commentedRichard,
That did the trick for me, thank you for the great module and the support.
Bill
Comment #15
sah62 CreditAttribution: sah62 commentedWorks for me - thanks for the update!