Something strange happens when I try to add fields in the formbuilder. The steps that I did was:

  1. Drag a new fieldset element to the formbuilder pane
  2. Edit the title and other attributes (I have created some custom fields using hook_form_alter)
  3. Drag a new textfield into the fieldset region
  4. See screenshot

Even after I saved, the error is still present. I can't drag any elements into the fieldset pane.

I'm using the latest release (6.24) and jquery 1.3.2 is installed through jquery_update. Issue happens both in FireFox and Chrome.

Can anyone reproduce and confirm if they're having the same issue?

Forgot to attach file so here's a link.

Comments

tom verhaeghe’s picture

Issue summary: View changes

Forgot to add screenshot.

quicksketch’s picture

Which version of Form Builder and Webform are you using? Right now, you must use the dev version of Webform with the dev version of Form Builder. The stable versions should also work together, but there are a significant number of improvements in the dev versions.

Actually you didn't mention if you're actually using Webform with Form Builder. What are you using Form Builder to edit?

tom verhaeghe’s picture

I'm indeed not using Webform with Form Builder. I've written a custom module and I'm attaching the data serialized in the database and I make use of Form Builder's API.

quicksketch’s picture

Title: Unable to add fields to newly created fieldset » Unable to add fields to newly created fieldset when a description is present

I found that this problem only exists if you've put a description on your fieldset (as you did in your screenshot). Fieldsets without descriptions don't have a problem. This should be an easy thing to fix, what's happening here is the placeholder that helps you drop fields in a fieldset is disappearing because the description is there, so it doesn't think the fieldset is empty.

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new1.79 KB
new1.79 KB

This patch corrects the problem by always skipping the fieldset description if present. D6 requires skipping both the description and legend, as sometimes the "fieldset-wrapper" div is there and sometimes not.

tom verhaeghe’s picture

I'm going to test this now, but I saw that this patch is already in the latest stable. Thanks a lot for the fix!

tom verhaeghe’s picture

Tested and working on Drupal 7.12 and Form Builder 7.x-1.0.

Thanks!

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

Anonymous’s picture

Issue summary: View changes

Unable to add image, added link to it.