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 CiviEvent (Moderator: Yashodha Chaku) »
  • Custom fields showing up where I don't want them to
Pages: [1]

Author Topic: Custom fields showing up where I don't want them to  (Read 476 times)

tmccartney

  • I post frequently
  • ***
  • Posts: 154
  • Karma: 9
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34-cll-lve
  • PHP version: 5.3.28
Custom fields showing up where I don't want them to
October 20, 2014, 10:29:43 am
Guys - I know there is probably documentation or previous posts about this, but I don't even know how to search for it.  The issue is this:  I created a set of custom fields for event registration for Event 1.  It is "Used for" participants.  Those custom fields now show up when I am editing participations for people registered for other events entirely (say Event 2), and because the fields are mandatory, I have to fill in something if I want to save my edits.  Those custom fields do NOT show up for registrants for Event 2, thank goodness.

Can I change something on this custom field set to make this behavior stop?  If not, what should I have done to prevent this from happening?

Thanks,

Tracey

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom fields showing up where I don't want them to
October 20, 2014, 12:32:18 pm
General rule is 'don't make custom fields required' for exactly that reason. If you want them required on registration form then set that in the Profile.
Does that help?

The difference between the 'field' and the 'field in the profile' can be confusing.

When you created 'the field' you should have been able to specify that it was only for Event 1

You might also be using different 'profiles' for both events. this could be why you see the field only showing for event 1 and not event 2.

but it sounds to me like you need to go back to the 'group of fields' and the 'fields' (not in the profile) and

- set them to only work for Event 1
- set them to not be required.

hope that helps but i may not be quite following the process you used. screenshots would confirm
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Custom fields showing up where I don't want them to
October 20, 2014, 10:58:49 pm
I agree about going into the "Custom Fields" area and edit the fields so that they are not required. Then go into "Profiles" and set the fields to be required there. Then they are only required on the places you put that profile - such as Event 1's reg page - and not when you are editing/adding profile fields.

As to the comment about setting an item to only show for certain events in the "Custom Fields" area, that I hadn't heard of before. I went and checked on our fields that are participant ones and could not find anywhere you could tell it which event(s) to show the field on.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom fields showing up where I don't want them to
October 20, 2014, 11:10:15 pm
Quote from: jsimonis on October 20, 2014, 10:58:49 pm
As to the comment about setting an item to only show for certain events in the "Custom Fields" area, that I hadn't heard of before. I went and checked on our fields that are participant ones and could not find anywhere you could tell it which event(s) to show the field on.

Maybe i am confusing people but the setting is on the 'group of fields' not on the field - and hence applies to all the fields in that group of custom fields

eg

http://d45.demo.civicrm.org/civicrm/admin/custom/group?action=update&reset=1&id=2
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Custom fields showing up where I don't want them to
October 24, 2014, 02:43:10 pm
Ah ha - you have to select "Participants (Event Name)" when you created the custom fields. If it's a set of custom fields you've already created, you can't edit it to change from "Participants" to that one.

tmccartney

  • I post frequently
  • ***
  • Posts: 154
  • Karma: 9
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34-cll-lve
  • PHP version: 5.3.28
Re: Custom fields showing up where I don't want them to
October 29, 2014, 09:02:47 am
Thanks, all.  I went and checked, and Peter was right - I had those fields required when I created them instead of just setting them to be required in the profile.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Custom fields showing up where I don't want them to

This forum was archived on 2017-11-26.