In Drupal 7 if you want to add password field there is no available module so use this custom module with few changes done as in the drupal 6

CommentFileSizeAuthor
webform_password.tar_.gz2.21 KBsachin00700

Comments

sachin00700’s picture

Use this attached module files to add password field in Drupal 7

sachin00700’s picture

'textfield' => array(
'label' => t('Password'),
'description' => t('Password type.'),
'file' => 'components/password.inc',
'features' => array(
'email_name' => TRUE,
'spam_analysis' => TRUE,
),
),

Anonymous’s picture

Thank you so much for posting this! Huge help!

hansrossel’s picture

Thanks!

A few remarks:

  • Passwords should not be saved as plain text in the webform results table.
  • It would be better if two input fields are created with validation that the values are the same.