Is it supposed to work on 7.x-4.x ? I can create the field but there is no widget added to it.
Simone

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arled’s picture

Have you installed it properly? (Your questions isn't very clear)

Mirabuck’s picture

I'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?

bdanin’s picture

The 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.

Dom.’s picture

Status: Needs review » Reviewed & tested by the community

#3 is ok for me ! Thanks !

kvnm’s picture

Version: 7.x-1.0-beta5 » 7.x-2.x-dev
Status: Reviewed & tested by the community » Needs review

I 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?

kvnm’s picture

Status: Needs review » Reviewed & tested by the community
kvnm’s picture

Status: Reviewed & tested by the community » Fixed
kvnm’s picture

Status: Fixed » Closed (fixed)
walking-bird’s picture

I'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!

martelle’s picture

FileSize
51.16 KB
90.67 KB

Update 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.