1<a id="Fields-example-interfaces-array"></a>Working with fields - interfaces array example 2============================================== 3 4This example wants to show you how to make use of the `Array` data type 5when creating fields for custom variables. First, please got to the `Dashboard` 6and choose the `Define data fields` dashlet: 7 8![Dashboard - Define data fields](screenshot/director/14_fields-for-interfaces/141_define_datafields.png) 9 10Then create a new data field and select `Array` as its data type: 11 12![Define data field - Array](screenshot/director/14_fields-for-interfaces/142_add_datafield.png) 13 14Then create a new `Host template` (or use an existing one): 15 16![Define host template](screenshot/director/14_fields-for-interfaces/143_add_host_template.png) 17 18Now add your formerly created data field to your template: 19 20![Add field to template](screenshot/director/14_fields-for-interfaces/144_add_template_field.png) 21 22That's it, now you are ready to create your first corresponding host. Once 23you add your formerly created template, a new form field for your custom 24variable will show up: 25 26![Create host with given field](screenshot/director/14_fields-for-interfaces/145_create_host.png) 27 28Have a look at the config preview, it will show you how your `Array`-based 29custom variable will look like once deployed: 30 31![Host config preview with Array](screenshot/director/14_fields-for-interfaces/146_config_preview.png) 32