Hi all,

First off all I'd like to say that 'Arrange Fields' is a great module for someone like me, who isn't very technical.
But there is one critical issue that I came across. Arranging fields works fine, but the submit button can't be moved. It stays in the upper left corner, behind my first field. I want the submit button to be placed at the bottom of the form. First I thought it was a browser issue, since I'm using Google Chrome. But the problem also appears in IE8. Is there a way to move the submit button?

Regards,

Jeffrey

Comments

richardp’s picture

Hey Jeffery, thanks for trying out the module!

When you hover over the submit button (having moved your other fields out of the way), do you get a "handle" that appears? Meaning, the little box that usually has an icon on it? If so, you can drag it around by that.

Also, is this a CCK form, a webform, or some other form?

Thanks
Richard

richardp’s picture

Priority: Critical » Normal

Just did a little checking-- on Webforms, the submit button doesn't seem to be getting a handle, so this is my bad. However, I am still able to drag it around, it's just a little trickier. Because I had to set the button's "disabled" property (to keep the user from accidentally clicking it and submitting the form) it makes it harder to drag.

Try dragging the thin gray border around the button, instead of the button itself. When you want to release the drag, make sure the mouse is still in the gray border region.

Of course, this is if you're talking about webform at all. ;)

I am going to put this in as a bug fix, and it should be in the dev release later tonight after 18:00. Try the dev release tomorrow morning and see if that fixes anything for you.

Thanks
Richard

richardp’s picture

If you're feeling daring (and don't want to wait until tomorrow morning) you can always download the arrange_fields.module file from the 6--1 branch of the CVS from here:
http://drupalcode.org/viewvc/drupal/contributions/modules/arrange_fields...

Just replace your old arrange_fields.module with that one. It contains my most recent changes which may fix your problem.

jeffreyvddb’s picture

Hi Richard,

Thanks for you quick replies! I tried to specify the problem as detailed as I could, but I didn't mention I was talking about (you guessed it right) a Webform. The handle didn't appear indeed and I tried to drag it by selecting the border around the button. But it didn't work. So, I replaced my arrange_fields.module and it worked! Great! Thanks so much :D

jeffreyvddb’s picture

Oh, I just noticed one strange thing. When I want to move a Upload field, I get two handles and dragging is not working as it should... Only tested it on a Webform with Google Chrome btw.

richardp’s picture

Status: Active » Fixed

Ah, it seems that I broke something with my last change. I have corrected it-- try out the latest arrange_fields.module file from here:
http://drupalcode.org/viewvc/drupal/contributions/modules/arrange_fields...
(should be version ..2.11). Again, this will also be in the next dev snapshot, which should go online within 12 hours of this post.

Thanks for helping me debug! I will confess that I don't use Webform regularly, and have mostly just worked with CCK or custom forms from my own modules. So I worry that there may be more Webform bugs lurking out there.

Richard

skyswather’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev

Hey! Great work this module! Well done!!

I've tried the latest dev myself (16 July 2010) (both on Firefox and IE) and I still cannot get the Submit button to move around.

I've even zoomed in in both browsers but it was still impossible to grab the button from the thin gray border as previously advised.

I'm using Webform. The button is clickable (so if I mistakenly click it, it actually submits the form).

richardp’s picture

That's very interesting. For one, the button should not be clickable at all. It should be getting expressly set as "disabled" in the module at the code level, not the CSS. So-- perhaps for some reason the module is either not being loaded, or maybe you have another module which is overriding arrange_field's efforts?

In my test installation, I am using the basic webform module, with no additional supporting modules for webform. Do you have any extra ones, specifically for webform, which you have installed? Also, does this happen on *all* webforms, or just a particular webform you created? (Create a brand new one just to test).

A couple things to try:

- Are you using the latest version (beta4)? It should be the same as the dev snapshot at this moment, but it's worth a shot just to make sure.

- Wiggle your mouse over and out of the button a few times. A box "handle" should appear in the right corner above the button. Sometimes for me, it takes a couple seconds of wiggling to make the handle appear. I have always assumed it was because my browser was just taking a minute to fire up the javascript.

- Clear your cache. You never know, sometimes that does the trick.

- Click "reset positions" on your webform, and start the arranging process over.

- In your system table, arrange_fields should have a weight of 500. If you see any other modules with a higher weight, change arrange_fields' weight to something even higher. Clear your cache after this change.

- Use firebug (or look at your page source) to see if the draggable-wrapper got added around the submit button. It should have an ID of something like "#edit-submit-draggable-wrapper". If it doesn't, it mean that for whatever reason, the module itself is never adding that wrapper.

Sorry you're having troubles! Let us know if any of these work, or if nothing works.

Thanks,
Richard

Hitmrrr’s picture

Still cannot get the Submit button to move around.

Webform 6.x-3.0-beta6

richardp’s picture

The version of webform which I've been using as a guide has been 2.9, not the latest beta release they have up. I will confess that I haven't tried to use their 3.0 beta version with arrange fields; for all I know there may be changes to the way it handles forms which makes it incompatible with arrange fields. I will have to experiment with it later.

But, this might not be your problem at all. If you are able to, try downgrading to the 2.9 version and see if that fixes anything.

Richard

richardp’s picture

Okay, I have confirmed that is indeed the problem. I will work on making arrange fields compatible with the 3.0 version of webform, but for now, it is only compatible with the 2.9 version. I will update the project page to say that.

Thanks!
Richard

richardp’s picture

Well, that was easier than I thought it would be. I have committed some code changes for experimental support for webform 3.0 beta. I dont want to do too much on it, though, until their code moves out of beta.

My changes will be in the next dev snapshot (later today).

If you don't want to wait, you can download arrange_fields.module from here: http://drupalcode.org/viewvc/drupal/contributions/modules/arrange_fields...

(get version 2.20 or later)

Thanks,
Richard

WebWalker3D’s picture

I am experiencing the same issues... The submit button is active (clicking and it will try to submit the form), no drag options, nothing TO grab to drag... I've updated to the latest revision you've posted, still no good. I checked the module weight in the system table, there was one module higher, so I set the arrange form higher. Still no dice.

**EDIT**

I completely removed webform, any table entry it had, any content made by it, as well as completely removed arrange fields and any content involved with it. After deleting files off the server, I reinstalled webform 3 and arrange fields development version. I am proud to say that the submit button can now be moved, and the handle bars show up to move it.

richardp’s picture

Hrm. Well, that is pretty odd. I did briefly experience this issue when I tried out Webform 3.0 beta6, but the change I put in place seemed to fix it. Meanwhile, webform 2.9 is the version I used when developing that feature of Arrange Fields.

What version of webform are you using?

Richard

richardp’s picture

Ah-- just saw your update. Glad to see it's working!

Richard

skyswather’s picture

Priority: Normal » Major

Working fine for me too now. Thanks for the help. Great work!!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.