I have installed the module, created a webform, added elements as:

-Fieldset Container
--Fieldset
---Textfield
---Textfield
--Fieldset
---Textfield
---Textfield

When I open up the display settings the Add More checkbox never appears.

The error I get is Undefined index: addmore in webform_addmore_webform_component_presave() , presumably as the component never gets created in the first place.

Any suggestions why this might be happening?

Comments

Jedd Casella’s picture

Same problem here. What other webform modules are you using with it?

I have:

Webform 7.x-3.19
Webform Add More 7.x-1.01+2-dev
Webform Autocomplete 7.x-1.2
Webform Layout 7.x-1.0
Webform Table Element 7.x-1.7
Webform Tokens 7.x-1.4

I'm also using form builder 7.x-1.4 and the options element 7.x-1.9

The line of code the error points at is

$settings[$component['cid']] = $component['extra']['addmore'];

Though, I would check to see if webform_addmore.js is being loaded.

I'm trying to solve the issue at the moment using https://drupal.org/node/1414806 as a reference guide. I will post back here if I am able to resolve the issue.

Regards,

Jedd

Jedd Casella’s picture

Okay, I can confirm that the webform_addmore module is incompatible with the Form builder module at this stage. This is the reason I could not see the check box.

Never fear, you can still get the add more button showing on your Form builder constructed webform by doing the following:

Create your form in form builder, keeping in mind the required structure of the webform_addmore module:

EXAMPLE STRUCTURE:

-CHILDREN (containing fieldset)
--CHILD 1 (add more fieldset)
---Child Name (textfield)
--CHILD 2 (add more fieldset)
---Child Name (textfield)
--CHILD 2 (add more fieldset)
---Child Name (textfield)

Once you have completed the form and you want to add the "add more" button. Disable all form builder modules.

Edit your webform using the default webform layout. You will now be able to edit your field set and check the "add more" box. Make sure you also tick the hide label box.

Once you are happy with that enable all your form builder modules once again if needed and view your form.

The add more buttons will now be shown on your form.

Hope this helps.

Jedd

chertzog’s picture

Status: Active » Fixed

I just pushed a patch that should fix the undefined indexes errors. As for the form builder stuff, im not sure. I havent tried to implement that.

Status: Fixed » Closed (fixed)

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