How can we add a password field to webform(in html we make use of tag).How can we do it here(please help)

Comments

andrewbor’s picture

Where is the password field in webform.module?

cornercuttin’s picture

i recently ran into this problem.

just copy the textfield.inc to password.inc, and replace the world "textfield" in that file to "password", except where the length boxes are concerned, or else when you try and set the length, that length field will be a password field. :-)

Kartagis’s picture

Hi,

Do we need to replace all occurrences of 'textfield'?

maarten_l’s picture

And don't forget to add an appropriate field in function webform_webform_component_info()!

Otherwise I don't think you can select the Password field.

spatil1007’s picture

I copied and pested the texfield.inc , renamed it to password.inc , and also replaced textfield with password in password.inc file but I as maarten said I am not able to see that field in Type combo box of webform.
I searched for the function webform_webform_component_info() but not found.

Could anyone please help me out to get the password field in webform. My requirement is to create the registration form in first page of webform. I also want to save that registration in database.