Hi,
After installing webform add more 7.x and i can see add_more settings in fieldset webform-settings, but after applying add_more behaviour to a webform fieldset, the add_more button is not displayed.

I have refer these links. but even i could not see add more button in web form. Any help appreciated..

http://d6-support.yale.edu/books/drupal-how-guide/creating-addmore-button
http://yalesites.yale.edu/module-tutorials/webform-addmore-button

Thanks in advance!!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

new123456789’s picture

www.make-me-a-website.net’s picture

Hi,
I get the same problem.
I am using the wbeform addmore dev version and webform 4.0 alpha 6

Nevermind I should have read the readme better...

The way this module work is not so straightforward. So people if you think the module does not work, read the readme !

tostinni’s picture

Version: 7.x-1.01 » 7.x-1.x-dev
FileSize
13.17 KB

I have read the README.txt and created the mentioned nested fieldsets.
However when viewing the form, all my inner fieldset are displayed with an "add more" button at the end. If I click it it renames in "remove last" and I can remove the last fieldset. After doing so, an "add more" button appears to readd the last fieldset.
Add more bug
Am I missing something or does the add more module doesn't work 100% with last webform 4.x ?

keva’s picture

Seeing the same thing.

  • click "Add More" button
  • another field appears
  • the button changes to "Remove Last"
  • the "Add More" button is hidden with this code: <input id="webform-addmore-webform-component-fieldset1" class="add-more" type="button" value="Add more" style="display: none;">

Also, the "Remove Last" button text doesn't always appear. On some forms, the value is blank: <input id="webform-addmore-del-webform-component-testbuy" class="del-btn" type="button" value="" style="display: inline;">

keva’s picture

Priority: Normal » Critical

This appears to be a problem for many people, so upgraded to critical.

I've just closed all these as (possible?) duplicates:
https://drupal.org/node/1931392
https://drupal.org/node/1999460
https://drupal.org/node/1999456
https://drupal.org/node/1998792
https://drupal.org/node/1935274

tostinni’s picture

My issue was caused by a faulty JS on my side, so I don't have this bug anymore.

rtan’s picture

I have tried the comments on this webform add more, but it still does not show the add more button. Can anyone please share the confirmed solution that works for all.

Thanks.

rtan’s picture

Hi, I have tried the comment on this thread about the webform addmore issue. But still my add more button does not show. Can someone share the definite solution to all :).

Thanks.

rtan’s picture

May I get the solution to this? I still do not see the add more button when I followed the suggestions on this thread.

Thanks.

chertzog’s picture

Status: Active » Fixed

Try the new dev version. It should be fixed.

Status: Fixed » Closed (fixed)

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

TBarina’s picture

Status: Closed (fixed) » Needs work
FileSize
7.92 KB

I'm using webform 7.x-4.0-alpha10 and add_more 7.x-1.x-dev but Add More doesn't appear in nested fieldset like shown in #3.

dunecat’s picture

Priority: Critical » Major

Hello everybody,
I am using webform 7.x-4.0-alpha10 and webform_addmore 7.x-1.x-dev (first tried with 7.x-1.2). It doesn't work for me either in nested fieldsets, like shown in #3 and #12. Thank you.

3djeff’s picture

Using webform 7.x-4.0-beta1 and webform_addmore 7.x-1.2 and addmore is not appearing to work. It simply does not display at all.

I set it up just like the screenshot indicates. 3 fieldsets with addmore setting checked and a textfield inside each. These are all nested in a larger fieldset.

warlock’s picture

I'm having the same issue. Can't get 'Add more' to appear at all with Webform 7.x-4.0-beta1 and Webform Add More 7.x-1.1+0-dev

Kevkash’s picture

Any update on this? I am having this issue to. -_-

Any help would be appreciated.

danbarron’s picture

Issue summary: View changes

Also using Webform version 7.x-4.0-beta1 and Add More version 7.x-1.1+0-dev. Also never see the Add More button after following the instructions.

One thing that makes me wonder, why does the main page say "configure two or more webform fieldsets to use Add More"? Why would I have to configure two? Wondering if I'm missing something.

paulap’s picture

Same problem....

sfcamil’s picture

Webform 7.x-3.20+9-dev
Webform Add More 7.x-1.2
same problem ...

puscifer’s picture

I am having the same problem :/
Is there a fix for this?

victoriachan’s picture

For the above commenters who haven't been able to see the 'Add more' button even after following the instructions, here's why: Not seeing 'Add more' button

quicksketch’s picture

I haven't tried this module on 7.x-4.x, but for those misunderstanding how this module works, there's a fairly good write-up at http://d6-support.yale.edu/books/drupal-how-guide/creating-addmore-button, which I assume hasn't changed since 6.x.

TBarina’s picture

Hi everybody. Add more cannot work with Webform 7.x-4 since there are numerous modifications in Webform 7.x-4 that are not taken into account by Add more (particularly webform components' #ids are now omitted in Weborm).

I've been able to adjust it but I'm not entitled (or better: skilled enough) to post a patch.

What I can do is submit my files duly modified herewith, which are:
- webform_addmore.module (modified in lines 129 and 133);
- webform_addmore.js

Hope someone can use them to fix Addmore.

Best regards

Tom

Silox’s picture

Status: Needs work » Patch (to be ported)
FileSize
6.37 KB

TBarina's code indeed works. I cleaned it up a bit and created a patch.

penone’s picture

Thanks Silox for the patch. I applied it but still having problems with getting the button to do anything.

On the site I am currently working on I have Webform 7.x-4.0-rc3 installed and the addmore button does show up but when I click on it nothing happens.

On another site I have Webform 7.x-4.0-alpha8 and am not using your patch but the addmore button works.

Any thoughts on whats different between rc3 and alpha8 that may be causing the problem?

steve_lou’s picture

Thanks for the patch.I tried it on addmore 7.x-1.2 and does not works.
then I uninstalled 7.x-1.2 and install 7.x-1.1+0-dev, patch again, It works.
On Webform 7.x-4.0-rc4 .
the outer big fieldset does not need addmore selected, the" two and more fieldset" as the README metioned needs.

ssoulless’s picture

Status: Patch (to be ported) » Reviewed & tested by the community

when is this going to be commited? should be good idea create a new branch, one for webform 4.x and another for webform 3.x

ssoulless’s picture

Status: Reviewed & tested by the community » Needs review

Well sorry, this is not working, I have jquery update with version 1.10 do not know if the jquery version has something to do with this

ssoulless’s picture

Status: Needs review » Active

after different tests with blank drupal installations this is not working, the issue maintains active

AdriaanS’s picture

As a workaround you can use the Webform Conditionals which are build-in by default in Webform 7.x-4.x

Kevkash’s picture

@AdriaanS - How would you do this functionality with the web form conditionals? Since this point this module is not working at all for me. :/

squarecandy’s picture

I took the suggestion to use Conditionals for now.

The fieldset I wanted to use "Add More" with was called Household Members.
I created a new numeric field that asks how many household members do you have with a min of 1 and a max of 7.
Then I cloned my fieldset and called each Household Member 1, Household Member 2, etc.
Finally I added a series of conditionals to the "how many" field:
If how_many is greater than 0 show Household Member 1,
If how_many is greater than 1 show Household Member 2,
etc.

It lacks the flexibility of the "add more" solution to accommodate an infinite number of fieldsets.
But it gets the job done for my purposes, and is probably easier for some less savvy users to understand the UI.

grom358’s picture

Slight cleanup to patch from #24

balaji_P’s picture

hi,

I have tried lot but i couldn't achieve add more functionality in drupal 7 web form. It does not even create add more button in web form. i have refereed these links,

1. http://d6-support.yale.edu/books/drupal-how-guide/creating-addmore-button
2. http://yalesites.yale.edu/module-tutorials/webform-addmore-button

Is there any fix for drupal 7?
Thanks in advance.

balaji_P’s picture

Issue summary: View changes
caw67’s picture

dev 2 version works with webform 4 for me

jmcpolin’s picture

I was using Webform Add More on my live site and since upgradigne to 7.x-4.11 it is not working. I am not seeing the webform add more buttons...
I have tried a number of options.

Webform 7.x-4.11
Webform 7.x-4.12
Webform Add More 7.x-1.2
Webform Add More 7.x-1.x-dev
Webform Add More 7.x-2.x-dev (I cannot get this to install, I am receiving an error on update.php)

So when I upgrade to 7.x-2.x-dev and run update.php I receive a message:
---
webform_addmore module
7200 - Upgrade path from 7.x-1.x version to 7.x-2.x.
---

And when I click on 'Apply pending updates' I receive the following error:
---
Notice: Trying to get property of non-object in webform_addmore_update_7200() (line 24 of /var/www/{MYSITE}/sites/all/modules/webform_addmore/webform_addmore.install).
Warning: Invalid argument supplied for foreach() in webform_addmore_update_7200() (line 24 of /var/www/{MYSITE}/sites/all/modules/webform_addmore/webform_addmore.install).

Update #7200
Failed: EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7844 of /var/www/{MYSITE}/includes/common.inc).
---

Can anyone provide any advice as I need to find a solution as soon as I can.

Thanks in advance

jmcpolin’s picture

Just to update... after alot of trial an error I got this to work... I will attempt to explain to hopefully help others.

Modules:
- Webform 7.x-4.12
- Webform Add More 7.x-1.2
(this may also work with the development modules Webform Add More 7.x-1.x-dev or Webform Add More 7.x-2.x-dev - it worked on my first attempt so I didn't test with these)

I then applied the following patch:
webform_addmore-webform-4.0-patch-1999164-24.patch' (Comment #24)
*This is also my first attempt at applying a patch, and I applied via the Git Bash method... thanks to this video https://www.youtube.com/watch?v=Yta7wwmbJ68

So thankfully got it working and have yet to come across any errors.

Good luck!

dureaghin’s picture

Patch from #24 and #33 does not working for me.

cdmo’s picture

FWIW, 7.x-2.x-dev works with 7.x-4.12 version of Webform in my experience. Drupal 7.50. No patch.

chrisgross’s picture

Priority: Major » Critical

No version of this module, patched or unpatched works for me with webform-4.12. At best, I get a button that says "Add more", it turns into a "remove" button after clicked, meaning only a single additional field instance is ever added. Updating to critical since the module itself is functionally broken.

david.qdoscc’s picture

7.x-2.x-dev is working for me with 7.x-4.15 without any patches and was also working with 7.x-4.12. It's worth recapping how to use the module though as this has caught me out a couple of times:

  1. Add a fieldset as the wrapper (eg. items) and check the box in the Add More section of the fieldset settings
  2. Add another fieldset inside the wrapper fieldset for your first item (eg. item1). Do not tick the add more box in this fieldset
  3. Add all the fields to it that you want our item to contain
  4. Clone your item1 fieldset as many times as you want people to be able to add more items. For each cloned fieldset increment the form key (eg. item2, item3, item4 etc)
  5. You may need to re-order the items within your wrapper fieldset as Webform seems to put cloned fieldsets before the original one
  6. View your form - it should be working :)
mckinzie25’s picture

Thank you, qdoscc. These are the best instructions I have found for how to use this module.

I would just add that 7.x-2.x-dev cannot be found on the main project page and is apparently not available to drush. It can, of course, be found at https://www.drupal.org/project/webform_addmore/releases

Also, "Add More" has its own section now in the edit form; it's not just a checkbox in the "Display" section.

srebelo’s picture

Thanks qdoscc & mckinzie25, both comments saved my day.

I've added the DEV working version via Composer this way for those using Composer as a dependency manager:
composer require drupal/webform_addmore:2.x-dev

flock’s picture

qdoscc - Invaluable steps, thank you.

yaach’s picture

It works for me with :

  • webform 7.x-4.20
  • webform_addmore 7.x-2.x-dev

on this version, the "Add More" options are group in a fieldset on the field settings, as opposed to 7.x-1 that is just a checkbox.

lokapujya’s picture

Status: Active » Reviewed & tested by the community

I am using webform 7.x-4.21. Using 7.x-1.x (dev version) with the patch in #33. It still works (after you configure the fieldsets.)