Answers.Body: <p>Yes, if you visit your api explorer you'll be able to play with this in detail, but the api call you probably want is:</p>
  
  <pre><code>civicrm_api3('contact', 'getoptions', array('field' =&gt; 'custom_123'));
  </code></pre>
  
  <p>where 123 is the id of your custom field.</p>
  
  <p>By the way, you haven't said how/where you are developing this form, but if it's on your own site with access to the ajax api, then a big shortcut for you would be to simply drop in an <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/EntityRef+Fields" rel="nofollow">entityRef field</a> (entity type = "option_value") and given the correct option group it will do everything else for you.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-26T17:07:08.630Z
Answers.LastActivityDate: 2015-09-26T17:07:08.630Z
Answers.UserDisplayName: Coleman
Body: <p>We'd like to retrieve a filtered list of the multiple choice options for one of our custom fields through the API, with the output being both the Label and the Value for that field (so we can use it in a dropdown).  Is there an API call to get all multiple choice options for a specific custom field?  Or do we need to write a query directly against the database table?  Thanks.</p>
  
Tags: <api>
Title: Custom Field Multiple Choice Through the API?
ThreadText: # Custom Field Multiple Choice Through the API?
  
  (Asked by: username_0 on 2015-09-26)
  
  We'd like to retrieve a filtered list of the multiple choice options for one of our custom fields through the API, with the output being both the Label and the Value for that field (so we can use it in a dropdown). Is there an API call to get all multiple choice options for a specific custom field? Or do we need to write a query directly against the database table? Thanks.
  
  **Tags:** api
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-09-26. Score: 3
  
  Yes, if you visit your api explorer you'll be able to play with this in detail, but the api call you probably want is:
  
  ```
  civicrm_api3('contact', 'getoptions', array('field' => 'custom_123'));
  
  ```
  
  where 123 is the id of your custom field.
  
  By the way, you haven't said how/where you are developing this form, but if it's on your own site with access to the ajax api, then a big shortcut for you would be to simply drop in an [entityRef field](http://wiki.civicrm.org/confluence/display/CRMDOC/EntityRef+Fields) (entity type = "option\_value") and given the correct option group it will do everything else for you.
  
  
  ---
  
  