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) »
  • What's the best way to handle one shot custom fields ?
Pages: [1]

Author Topic: What's the best way to handle one shot custom fields ?  (Read 1518 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
What's the best way to handle one shot custom fields ?
March 08, 2008, 05:43:15 am
Hi all,

I've seen two options to add additional fields on an event: creating custom fields for events and using profiles on contacts, but both looks like a "permanent" setting for the installation.

What I'd like to have is to add custom fields for just one event (eg: checkbox "need an hotel for the night 07/03/2008 to 08/03/2008 ?").
I doesn't make sense to have it as a permanent attribute available for all the events, nor adding a profile and a custom fields for all the contacts.


How do you handle that ?


X+









-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: What's the best way to handle one shot custom fields ?
March 08, 2008, 10:04:00 am

you can also have a custom group per event type. So you can give that one event a specific event type, which basically makes it a custom group for that event. I dont think this model scales very well (neither would allowing custom groups for an event)

The below question mightt be better asked as: Do you need a hotel for the event?

thereby avoiding any date issues and making it more generic :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: What's the best way to handle one shot custom fields ?
March 08, 2008, 03:43:55 pm
Hi,

The hotel was an example, but you often have different workshops within the same big conference, and you need to be able to choose whose you're going to attend. Of course, the title of each of these workshop is going to be different for each big conference.

I have looked at the registration form of a few past events, and that's not that generic (or you become more ambiguous on the formulation, hence increasing the risk of errors).

I'll think about it. Would it be a big modification to add the possibility to have a custom group per event instead of per event type ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: What's the best way to handle one shot custom fields ?
March 08, 2008, 04:43:05 pm

I dont think its too big a modification, however i dont think its likely we will incorporate this in the short term. You will need to modify the custom data code to change from event types to event names. Both are db lookup, so to some extent the code will be very similar

you might want to start off with: CRM/Custom/Form/Group.php. Ping us on irc if you have any questions or comments

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • What's the best way to handle one shot custom fields ?

This forum was archived on 2017-11-26.