title: Repeater fields in visual composer elements with ACF or JQuery
body: <p>I am trying to create a repeat field to be able to add more required text fields in a visual composer element plugin but not sure how I can add this or if it is possible. I need it to be able to add more text fields that the user might require.</p>
  
  <p>The following code adds a text field but I don't know how to make it so the user can add the fields they require. The plugin is going to allow the user to add email,phone,name,social media and more items that they require.</p>
  
  <p>This is the custom field that visual composer will load and can add our custom built field.</p>
  
  <pre><code>array(
              "type" =&gt; "my_param",
              "holder" =&gt; "div",
              "class" =&gt; "",
              "heading" =&gt; __("Flipping text", "js_composer"),
              "param_name" =&gt; "fliping_text",
              "value" =&gt; '',
              "description" =&gt; __( "Enter text and flip it", 'my-text-domain' ),
       )
  </code></pre>
  
  <p>My custom field would be like something like this in the visual composer but with the correct settings.</p>
  
  <pre><code>    // repeat fields
  add_shortcode_param( 'my_param', 'my_param_settings_field', plugin_dir_url( __FILE__ ).'vc_extend/js/elements/elements.js' );
  function my_param_settings_field( $settings, $value ) {
     return '&lt;div class="my_param_block"&gt;'
               .'&lt;input name="' . esc_attr( $settings['param_name'] ) . '" class="wpb_vc_param_value wpb-textinput ' .
               esc_attr( $settings['param_name'] ) . ' ' .
               esc_attr( $settings['type'] ) . '_field" type="text" value="' . esc_attr( $value ) . '" /&gt;'
           .'&lt;/div&gt;'
           .'&lt;button class="flip-input-text"&gt;Flip&lt;/button&gt;'; // New button element
  }
  </code></pre>
  
  <p>Here is a link to repeater fields with jQuery <a href="http://jsfiddle.net/Unfxn/27/" rel="nofollow">http://jsfiddle.net/Unfxn/27/</a></p>
  
  <p>I am not sure how or if the new fields would be stored as the array for my_param would maybe not load them all once created by visual composer if the element was to be edited again.</p>