For really big forms, 10 through to -10 is just not enough weights to get all the elements in the right order. One might argue that forms shouldn't be that big, or should be put on multiple pages, but we don't have that functionality yet.
For now, here is a patch that allows the administrator to set a "Webforms Maximum Weight Size" in the "Advanced" section of admin->settings->webform. Currently its possible to select 10 (the default), 20 or 30. This gives weight values ranging from -10 to +10, -20 to +20 and -30 to +30 respectively.
| Comment | File | Size | Author |
|---|---|---|---|
| webform-max-weight.patch.txt | 1.48 KB | egfrith |
Comments
Comment #1
ullgren commentedComment #2
ullgren commentedNow uses the number of components in the form as weight delta (if they are more than 10).
Comment #3
quicksketchFantastic solution! With webform already being a complex module, I like the simplicity of this implementation. Let's hope people don't start making forms with 100+ fields. I tried out the CVS version and everything looks like it's working fine.
Comment #4
(not verified) commented