Use the following code to create a basic inputEx ListField.
Example for the sortable ListField
How to listen to the updated event :
Use buttons :
Use the maxItems and minItems options :
The names are automatically set on sub-fields, so that standard forms can work. Click the button and check the URL