CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to add a "Password" field to a CiviCRM Profile?
Pages: [1]

Author Topic: How to add a "Password" field to a CiviCRM Profile?  (Read 1165 times)

ashwanidher

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
How to add a "Password" field to a CiviCRM Profile?
May 12, 2011, 06:34:16 am
All,

I am working on a project that requires me to add a "Password" field to the CiviCRM Profile.
Note that I am not using the "Primary Email" field for "Contact", which in CiviCRM automatically generated the Username and Two Password fields(Password/reconfirm password).

My requirement is to add a Password field as a Custom Data Field.

Even I tried to use the addElement function in the following manner within the hook_civicrm_buildForm.
$form->addElement('password','some_password', ts('Some Password'));

But it also did not work.

Please help as it is highly needed.

Thanking you in anticipation of the same.

Warm Regards,
Ashwani Dher

ashwanidher

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: How to add a "Password" field to a CiviCRM Profile?
May 12, 2011, 10:13:28 pm
All,

Any feedback for the query I posted.

Warm Regards,
Ashwani Dher

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to add a "Password" field to a CiviCRM Profile?
May 12, 2011, 11:31:22 pm
Hi,

Have you modified the template to display the password field (most need it) ?

use debug mode to see what's assigned to the template.

http://en.flossmanuals.net/civicrm/ch062_introduction/
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to add a "Password" field to a CiviCRM Profile?

This forum was archived on 2017-11-26.