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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Adding hidden field to Civiprofile
Pages: [1]

Author Topic: Adding hidden field to Civiprofile  (Read 624 times)

sriraman.v

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Drupal
  • MySQL version: 5.5.8
  • PHP version: 5.2.9
Adding hidden field to Civiprofile
May 19, 2011, 10:31:40 pm
i have created the a form in civiprofile,
my question is how to create a hidden field in the custom form

so that  the hidden field should be stored in DB.

This can be done by confiuration or by code ?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Adding hidden field to Civiprofile
May 20, 2011, 02:51:11 am
Hi,

What would be the hidden field for ?

you can either use jquery to hide the field (custom template or hook that injects some js) or use a custom field where you write a hook to set it the way you want.

Check out our chapter about hooks: http://en.flossmanuals.net/CiviCRM/DevelopHooks/
X+
-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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Adding hidden field to Civiprofile

This forum was archived on 2017-11-26.