title: Advanced Custom Fields – Custom Field Type with multiple inputs
body: <p>I am trying to create a new field type for ACF that contains multiple inputs or stores an array of values. The reason is that I would like to have some interactivity and a custom layout for a group of input fields.</p>
  
  <p>I followed this tutorial <a href="http://www.advancedcustomfields.com/resources/tutorials/creating-a-new-field-type/" rel="nofollow">http://www.advancedcustomfields.com/resources/tutorials/creating-a-new-field-type/</a> and used the provided template: <a href="https://github.com/elliotcondon/acf-field-type-template" rel="nofollow">https://github.com/elliotcondon/acf-field-type-template</a> which is really nice and well documented. Storing one value is pretty simple. I am using only this function from the template:</p>
  
  <pre class="lang-php prettyprint-override"><code>function create_field( $field )
  {
      echo '&lt;textarea id="' . $field['id'] . '" rows="4" class="' . $field['class'] . '" name="' . $field['name'] . '" &gt;' . $field['value'] . '&lt;/textarea&gt;';
  }
  </code></pre>
  
  <p>What do I have to change in order to use two or more inputs?
  Thanks!</p>