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

Add ability to query custom field options on api getfields

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      /*
      Demonstrate retrieving custom field options
      */
      function contact_getfields_example(){
      $params = array(
      'options' => array(
      'get_options' => 'custom_1',
      ),
      'version' => 3,
      'action' => 'create',
      );

      'custom_1' => array(
      'label' => 'Country',
      'groupTitle' => 'select_test_group',
      'data_type' => 'String',
      'html_type' => 'Select',
      'text_length' => '',
      'options_per_line' => '',
      'extends' => 'Contact',
      'is_search_range' => 0,
      'extends_entity_column_value' => '',
      'extends_entity_column_id' => '',
      'is_view' => 0,
      'is_multiple' => 0,
      'option_group_id' => '80',
      'date_format' => '',
      'time_format' => '',
      'options' => array(
      '1' => 'Label1',
      '2' => 'Label2',
      ),
      ),

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: