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) »
  • Error when using custom data for event template
Pages: [1]

Author Topic: Error when using custom data for event template  (Read 835 times)

zither

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
Error when using custom data for event template
July 07, 2011, 11:45:12 am
I created a custom data for an event type. Some of the fields in the custom data are required. Then I started creating a template that uses this event type. After I finished Info and Settings and continued, I got an error:

Please correct the following errors in the form fields below:
First name is a required field.
Last Name is a required field.
Email is a required field.

I am creating a template, not registering for the event. Why this error?

Help!!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error when using custom data for event template
July 07, 2011, 05:55:54 pm
Are you actually wanting to collect custom data about the EVENT, or about the PARTICIPANTS in the event (sounds like that given your examples). If this is participant data, you need to make sure that the 'Used For' field in your Custom Data Set = Participant (not Event).
Protect your investment in CiviCRM by  becoming a Member!

zither

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
Re: Error when using custom data for event template
July 07, 2011, 08:05:06 pm
Thanks a lot, Dave.

You are right. I wanted to collect data about the participants, not the event. So I tried to create a new custom data set and chose Participants (Event) for the field of Used For. And I wanted to reproduce those custom fields such as First Name, Last Name, and Email. However, I got another error, saying these fields already exist in the database. It seems I can't recreate these fields for the new custom data and I can't reuse them either. What should I do?


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: Error when using custom data for event template
July 08, 2011, 02:17:36 am
if you want first name etc in a profile for an event you use the already existing fields - you should find them under Individual in the dropdown. does that help?
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

zither

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
Re: Error when using custom data for event template
July 08, 2011, 08:44:47 am
Pete,

I don't quite understand. I am trying to create a new custom data, not profile. Below is a screen capture of what I see when I try to create custom fields. When I use "First Name" as Field Label, I am told that it already exists because I have another custom data set containing First Name:

http://screencast.com/t/os6sWitd


Quote from: petednz on July 08, 2011, 02:17:36 am
if you want first name etc in a profile for an event you use the already existing fields - you should find them under Individual in the dropdown. does that help?

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: Error when using custom data for event template
July 08, 2011, 02:37:31 pm
hi zither - what is the purpose of creating a new field for firstname rather than using the core field?

If you have some reason then you will just have to tweak the name of the field so it doesn't clash with  the core one - but i am wondering if you are still learning the basics of how civicrm manages the database - if so this chapter may help - http://en.flossmanuals.net/civicrm/ch010_how-data-is-organised/

the core fields capture names, address fields etc - then when we want to have these fields filled in via an Event - ie get a Participant to fill in the form to register for an event and give us there name, we therefore expose the core 'name' field in the profile.
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Error when using custom data for event template

This forum was archived on 2017-11-26.