I can't seem to figure out how to place components into fieldsets. When I go to Edit > Form Components to re-arrange the components underneath and to the right of the fieldset, the changes don't get saved. Attached are screenshots showing what the form looks like, what I try to do in edit components mode, and what the edit components form looks like after submitting changes.

Comments

kitsunechan’s picture

StatusFileSize
new175.11 KB

Nevermind. I found a drop-down called Parent Fieldset for this in the advanced settings for each component.

kitsunechan’s picture

Status: Active » Closed (fixed)
rcharles’s picture

Unfortunately, I do not see this "advanced" option under component edit or the specific fieldset component?

bobmct’s picture

Status: Closed (fixed) » Needs work

I too cannot find the "advanced" option either and it is required

quicksketch’s picture

The positioning options are hidden on the individual component forms. Just use the drag and drop handles on the listing of components to indent any component underneath a fieldset.

pluginguin’s picture

Well... I'm using Drupal 7 and I also don't see the advanced settings inside the individual components, but I also don't see the drag and drop handles 'Quicksketch' is writing about.

So how do I do it?

quicksketch’s picture

The handles are probably being hidden. Click the "Hide table weights" link in the upper right hand corner of the table. This is supposed to be a usability feature of Drupal 7, but generally causes confusion. :\

quicksketch’s picture

Category: bug » support
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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

Dantien’s picture

Status: Closed (fixed) » Active

Where is the "Hide Table weights" link? I dont see it anywhere on the webform components. I can't move the components via drag-and-drop either so I'm unable to put any fields in the fieldset.

vernond’s picture

The "Show row weights" and "Hide row weights" links (actual text depends on which mode you're currently in) show at the top right hand side of the Webform Form components table where all your current forms components are listed. When you click on "Show row weights" your Form components page table will reveal an extra column to the left of the Actions column, clicking on "Hide row weights" hides this column again.

If you do not find these then your current theme is the most likely culprit.

Try changing your admin theme to Garland (in Drupal 6) or Seven (in Drupal 7) and make sure that your browser has JavaScript enabled to fix the drag 'n drop issue.

You may need to upgrade your version of Webform if you're genuinely still on version 6.x-2.4.

Dantien’s picture

StatusFileSize
new147.45 KB

sadly, I've checked all those and still can't get it to work. I have Webform 7.x-3.15 installed, JavaScript enabled on Chrome and Firefox (Mac), and am using the Seven Admin theme already. Screenshot attached. Cannot figure out how to get items in fieldsets!

vernond’s picture

Cool, thanks for the screenshot. These are the steps you need to follow:

Add a new fieldset component (it's an option in the component type dropdown list);
Using the drag handle next to your new component, drag the fieldset to be above the first field you want to include in the fieldset;
With the drag handle of the first component you want included, drag it slightly to the right until it is indented;
Repeat this for all components you want in the fieldset;
IMPORTANT - click on the Submit Save button to save your work;
Now click on View to check out what you've done.

Dantien’s picture

Yeah, that's how I figured it could be done, but without the ability to drag components, I can't follow your instructions. Sadly, the dragging doesn't work at all for my Mac browsers...

vernond’s picture

Most weird - which Mac browsers do you use?

vernond’s picture

Status: Active » Closed (works as designed)

Actually, it's probably not that weird. I am certain that Mac browsers work: a) because quicksketch works on a Mac; b) you are definitely not the only Webform user that is on Mac.

Getting back to your screenshot in #12: Add a fieldset component. Without a fieldset component you will not have fieldset functionality.

Dantien’s picture

StatusFileSize
new148.13 KB

I understand I may not have communicated clearly enough, but I had added a fieldset and couldn't get things to move "into" it, then removed the fieldset before taking that screenshot. Nonetheless, I've re-added one (see screenshot) and still there seems to be no way to move any fields into the fieldset.

I'm using Google Chrome for the Mac, but this also fails to work on Firefox. I'm not sure why it doesn't work (the click-drag sorting OR the fieldset functionality), but it seems that fieldsets have no way of being set up without click-drag?

vernond’s picture

Does your mouse pointer change to indicate a link when you hover over the drag handles? I'm wondering if some obscure theming issue is possibly positioning a div over the drag handles somehow so that they never receive focus (or something in that line anyways).

Dantien’s picture

Sadly the mouse pointer doesn't change into a pointer, only a four-way arrow identical to the one indicating the drag ability. And while I am using a customized form, when changing to a more common form like Bartik, this still occurs.

Dantien’s picture

Interesting, I installed a new theme (Jackson) on a different site/server and the drag functionality works fine (to move blocks around). But on the problematic installation/theme, I can't move the blocks on the same admin page. So it must be the theme causing the problem. I'll add the webform module to the other (test) installation and try to replicate the problem.

If it's a theme issue, what can I do to fix this?

vernond’s picture

Firefox has a webdeveloper plugin (firebug and other such tools also exist) which may help you identify the theme issue.

pelsdyret’s picture

I also use MAC and Chrome. I had it working by doing the following:

  1. Create the fieldset field above the fields you want to include in it
  2. Drag the fields to the right, making them sub-fields of the fieldset

This works for me in Drupal 7, on MAC with both Chrome and Safari.

michaeldaly352’s picture

With D7, create a new component, of type Fieldset. Name then save it. Then go back to the existing component that you want to put in the newly created Fieldset. Scroll down to the bottom and selection 'Position'. Open it and you'll see an option 'Parent Fieldset'. In addition to the default position of 'Root', you should now see the name you chose for the new Fieldset. Choose that new Fieldset, save it, then View the Form. You'll understand the changes.
MD352