Closed (won't fix)
Project:
Webform
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Jul 2009 at 22:10 UTC
Updated:
10 Jan 2012 at 15:58 UTC
This patch allows onfocus and onblur events to be added to textfields through the interface.
Kudos to the overall design of this system. This functionality was really easy to add. Thanks.
I didnt look into other use-cases but other people might want to add onfocus and onblur events to other components.
Also I didnt really know where to set the weight so i just choose something.
Please review and comment.
| Comment | File | Size | Author |
|---|---|---|---|
| webform-textfield-onfocus-onblur.patch | 1.2 KB | Jackinloadup |
Comments
Comment #1
quicksketchThis has been marked won't fix once before. See #280408: onchange javascript injection for text fields.
Comment #2
Syph commentedI use this all the time for text fields but I am having trouble trying to add this to select boxes?
Can someone point me in the right direction.
Comment #3
Jackinloadup commented@Syph
usually for select boxes you want onchange
Comment #4
quicksketchComment #5
twram commentedHow do you add a the patch to the webform module?
Comment #6
picciuto commentedRead this on applying patches. http://drupal.org/patch/apply
Comment #7
tustind commentedTo make this work for versions 6.x-3.4, copy the code below at line 117 of the component/textfield.inc:
Comment #8
shadowdknight commentedHow does it work in 7.x-3.x?
Thanks!