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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Custom Fields on Activity Types
Pages: [1]

Author Topic: Custom Fields on Activity Types  (Read 542 times)

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Custom Fields on Activity Types
November 04, 2014, 10:27:18 am
A couple of use cases:
- some activity types should be created automatically by PHP, others are available for users to create
- we want staff to be able to say which activities that alumni have can be viewed through the teacher dashboard, which can be added by the teachers using it, etc.

The distinction here is that we can add flags to specific activity types as opposed to activities themselves.

What do all y'all think?
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Custom Fields on Activity Types
November 04, 2014, 10:57:59 am
Activity Types are part of the OptionValue entity these days.

I can see some convincing arguments for custom fields on OptionValue, mostly to do with customization like this.  You could also use them with the EntityRef to create chained selects (like how the values in State/Province are dependent on the selected Country).

As with most custom fields, the problem is more about having a good UI than about adding custom fields to a new entity.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom Fields on Activity Types
November 04, 2014, 05:26:50 pm
You could potentially use civicrm_option_value.grouping to store flag(s) which control usage for the activity types. This property is not currently exposed in the admin UI for Activity Types - but is used for somewhat similar purpose for some other option groups.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Custom Fields on Activity Types

This forum was archived on 2017-11-26.