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.
Is it supposed to work on 7.x-4.x ? I can create the field but there is no widget added to it.
Simone
Comment | File | Size | Author |
---|---|---|---|
#11 | change-name-of-js-file.png | 90.67 KB | martelle |
#11 | original.png | 51.16 KB | martelle |
#3 | webform4-combined-fix-2157627.patch | 4.96 KB | rwohleb |
Comments
Comment #1
arled CreditAttribution: arled commentedHave you installed it properly? (Your questions isn't very clear)
Comment #2
Mirabuck CreditAttribution: Mirabuck commentedI'm not surprised if this doesn't currently work with 7.x-4.x. I built it out on top of 7.x-3.x and the folks I built it for haven't yet updated webform so I haven't really had a reason to check it.
Can anyone confirm that it is or isn't working with 7.x-4.x currently?
Comment #3
rwohlebI have it working against Webform 4.x through a combination of patches:
Sorry for such a combined patch, but I'm in a crunch to get it working on my end.
Comment #4
bdanin CreditAttribution: bdanin commentedThe patch in #3 seems to be working, but I now get undefined variable $component notice, line 286:
Notice: Undefined variable: component in webform_countdown_validate() (line 286 of sites/all/modules/contrib/webform_countdown/webform_countdown.module
For now, I've commented out line 286, and it still seems to be working.
Comment #5
Dom. CreditAttribution: Dom. commented#3 is ok for me ! Thanks !
Comment #6
kvnm CreditAttribution: kvnm commentedI just added a new 7.x-2.x dev branch which includes these and other commits -- it's working well so far on Webform 4.x for me. Marking Needs review here so hopefully some other folks will take a look at it. Also, could any further patches for Webform 4.x compatibility be applied to the 7.x-2.x branch?
Comment #7
kvnm CreditAttribution: kvnm at Untold Studio commentedComment #8
kvnm CreditAttribution: kvnm at Untold Studio commentedComment #9
kvnm CreditAttribution: kvnm at Untold Studio commentedComment #10
walking-bird CreditAttribution: walking-bird commentedI'm using Webform 7.x-4.15 and I installed and enabled Webform Countdown 7.x-2.0-beta1 + 2-dev. I also installed the jquery thing in /sites/all/libraries/word-and-character-counter.
But I don't see anything when I'm using webform. It would be helpful if someone that has it working could share a screenshot about how it looks when it is working, I just don't see anything, but maybe I'm looking in the wrong place.
Thanks!
Comment #11
martelle CreditAttribution: martelle as a volunteer commentedUpdate the syntax in the module's file: "webform_countdown.module" specifically line 341, img attached for reference. The name of the jquery file that the module is looking for is incorrect, it is looking for "word-and-character-counter.js" rather than jquery.word-and-character-counter.js" (the latter is the file you download from the project's description page)
The file in question is in the library location "/libraries/word-and-character-counter/" but the .js file (library) you need to download from the project's description page is named "jquery.word-and-character-counter.js". If you don't want to poke around in a module file, you should be able to just rename the jquery file to "word-and-character-counter.js" and it should work.
Now I got it working yayy! But then I had the countdown message appearing twice (ex. "xx characters left") with the same named div. After I found this patch and applied it, it's all working well. I had expected to see this patch in the latest stable release but it was not there.