attributes

Type: array

Allows the addition of custom data attributes to a form field. Attributes must be entered as an array of key => value pairs, as in the example below:

$args['fields'][] = array('type' => 'search',
                          'label' => 'Search',
                          'format' => 'text',
                          'attributes' => array('data-src' => 12345, 'data-color' => 'red') );

The above example will generate HTML for a search field that looks something like this:

<input type="text" data-src="12345" data-color="red" class="wpas-text" name="search_query">

This featured was added in version 1.2. Currently only works with text, textarea, select, and submit fields.