Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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!!
Comment | File | Size | Author |
---|---|---|---|
#33 | webform_addmore-webform-4.0-patch-1999164-33.patch | 5.36 KB | grom358 |
#24 | webform_addmore-webform-4.0-patch-1999164-24.patch | 6.37 KB | Silox |
#23 | webform_addmore.js_patched.txt | 5.68 KB | TBarina |
#23 | webform_addmore.module_patched.txt | 5.27 KB | TBarina |
#12 | Immagine.png | 7.92 KB | TBarina |
Comments
Comment #1
new123456789 CreditAttribution: new123456789 commentedTry the dev version instead: http://ftp.drupal.org/files/projects/webform_addmore-7.x-1.x-dev.zip
Comment #2
www.make-me-a-website.net CreditAttribution: www.make-me-a-website.net commentedHi,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 !
Comment #3
tostinni CreditAttribution: tostinni commentedI 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.
Am I missing something or does the add more module doesn't work 100% with last webform 4.x ?
Comment #4
keva CreditAttribution: keva commentedSeeing the same thing.
<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;">
Comment #5
keva CreditAttribution: keva commentedThis 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
Comment #6
tostinni CreditAttribution: tostinni commentedMy issue was caused by a faulty JS on my side, so I don't have this bug anymore.
Comment #7
rtan CreditAttribution: rtan commentedI 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.
Comment #8
rtan CreditAttribution: rtan commentedHi, 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.
Comment #9
rtan CreditAttribution: rtan commentedMay I get the solution to this? I still do not see the add more button when I followed the suggestions on this thread.
Thanks.
Comment #10
chertzogTry the new dev version. It should be fixed.
Comment #12
TBarina CreditAttribution: TBarina commentedI'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.
Comment #13
dunecat CreditAttribution: dunecat commentedHello 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.
Comment #14
3djeff CreditAttribution: 3djeff commentedUsing 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.
Comment #15
warlock CreditAttribution: warlock commentedI'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
Comment #16
Kevkash CreditAttribution: Kevkash commentedAny update on this? I am having this issue to. -_-
Any help would be appreciated.
Comment #17
danbarron CreditAttribution: danbarron commentedAlso 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.
Comment #18
paulap CreditAttribution: paulap commentedSame problem....
Comment #19
sfcamil CreditAttribution: sfcamil commentedWebform 7.x-3.20+9-dev
Webform Add More 7.x-1.2
same problem ...
Comment #20
puscifer CreditAttribution: puscifer commentedI am having the same problem :/
Is there a fix for this?
Comment #21
victoriachan CreditAttribution: victoriachan commentedFor 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
Comment #22
quicksketchI 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.
Comment #23
TBarina CreditAttribution: TBarina commentedHi 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
Comment #24
Silox CreditAttribution: Silox commentedTBarina's code indeed works. I cleaned it up a bit and created a patch.
Comment #25
penone CreditAttribution: penone commentedThanks 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?
Comment #26
steve_lou CreditAttribution: steve_lou commentedThanks 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.
Comment #27
ssoulless CreditAttribution: ssoulless commentedwhen 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
Comment #28
ssoulless CreditAttribution: ssoulless commentedWell 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
Comment #29
ssoulless CreditAttribution: ssoulless commentedafter different tests with blank drupal installations this is not working, the issue maintains active
Comment #30
AdriaanS CreditAttribution: AdriaanS commentedAs a workaround you can use the Webform Conditionals which are build-in by default in Webform 7.x-4.x
Comment #31
Kevkash CreditAttribution: Kevkash commented@AdriaanS - How would you do this functionality with the web form conditionals? Since this point this module is not working at all for me. :/
Comment #32
squarecandy CreditAttribution: squarecandy commentedI 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.
Comment #33
grom358 CreditAttribution: grom358 commentedSlight cleanup to patch from #24
Comment #34
balaji_P CreditAttribution: balaji_P commentedhi,
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.
Comment #35
balaji_P CreditAttribution: balaji_P commentedComment #36
caw67 CreditAttribution: caw67 commenteddev 2 version works with webform 4 for me
Comment #37
jmcpolin CreditAttribution: jmcpolin commentedI 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
Comment #38
jmcpolin CreditAttribution: jmcpolin commentedJust 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!
Comment #39
dureaghin CreditAttribution: dureaghin commentedPatch from #24 and #33 does not working for me.
Comment #40
cdmo CreditAttribution: cdmo commentedFWIW, 7.x-2.x-dev works with 7.x-4.12 version of Webform in my experience. Drupal 7.50. No patch.
Comment #41
chrisgross CreditAttribution: chrisgross commentedNo 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.
Comment #42
david.qdoscc CreditAttribution: david.qdoscc commented7.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:
Comment #43
mckinzie25 CreditAttribution: mckinzie25 as a volunteer commentedThank 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.
Comment #44
srebelo CreditAttribution: srebelo commentedThanks 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
Comment #45
flock CreditAttribution: flock commentedqdoscc - Invaluable steps, thank you.
Comment #46
yaach CreditAttribution: yaach commentedIt works for me with :
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.
Comment #47
lokapujyaI 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.)