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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Need a Custom field that will NOT display on reg. form
Pages: [1]

Author Topic: Need a Custom field that will NOT display on reg. form  (Read 349 times)

zorgalina

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Need a Custom field that will NOT display on reg. form
March 03, 2015, 08:27:06 am
I wanted a custom field for configuration purposes only (and no user needs to see or modify the value) I created a field as 'view only' with a default value but it still shows on the registration form (this is an Event-related field).  Is there a setting/feature to add a custom field that will NOT be displayed on the form, it is meant to be an admin-only sort of value.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Need a Custom field that will NOT display on reg. form
March 03, 2015, 08:29:29 am
I don't understand the question. No custom field will show up on an event registration form unless you put it there.
Try asking your question on the new CiviCRM help site.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Need a Custom field that will NOT display on reg. form
March 03, 2015, 11:41:18 pm
You can disable the field? Set it to is_active = 0? That means you can still manipulate the data in your extension/customization but the user does not see it? I am assuming it will receive its value from some kind of code???
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

zorgalina

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Need a Custom field that will NOT display on reg. form
March 04, 2015, 06:22:47 am
Erik, thanks for that idea, that sounds good, yes it will receive it's value from php code
 - Coleman, yes, of course I put the field there but I don't want it to be visible, I just want it to keep a 'configured'/default value that I set up.
If there were different "types" visibility of custom fields (e.g., 'admin' vs. public, as I used in price fields), then an 'admin' type field would only be visible to 'admin' users; I don't know if anyone else has wanted that.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Need a Custom field that will NOT display on reg. form
March 04, 2015, 06:34:42 am
To clarify what I meant: you can add custom participant fields to an event by creating a custom field set and specifying the event(s) it is applicable for.
Once you do that, the data will be there. You'll be able to see it and work with it from the CiviCRM back-end.
If you don't want the field to appear on the registration form, simply do nothing, by default it is not there.
In order to make it appear on the registration form you need to create a profile, add the custom field to the profile, and add the profile to the event registration page.
If you didn't want the field on the registration page, why would you do that?
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Need a Custom field that will NOT display on reg. form

This forum was archived on 2017-11-26.