Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15843

When creating customField via the API, can't set option_group_id

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.5.5
    • Fix Version/s: 4.6
    • Component/s: CiviCRM API
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      If you create customFields programmatically, you might want to use the same option group over and over again.

      For instance, if you're creating custom fields for Writing Ability, Teaching Ability, and Spanish Language Ability, you might create an option group called Skill Level (expert, intermediate, novice) and use it for all three.

      Currently the create API disregards the option_group_id parameter. The only option is to specify option values via the option_values parameter, in which case you'd end up with three nearly identical option groups.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pittstains Frank J. Gómez
                Reporter:
                pittstains Frank J. Gómez
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: