I'm building a costum form using Drupal (7) Form API
I want to create a text field with possibility to add multiple values through autocomplete. The idea is to allow the user to add taxonomy terms to my instance that is to be saved through the form.
Final goal is to present selected values in a table with fields
Term name | Vocabulary | Actions
Where Term name is a input field with autocomplete. When a term is selected, Vocabulary name is appended through JS, and actions just contains a "Remove" button.
And finally under this table I'll have a button with "Add another value". I'm seeing this done through the Fields API, if I'm setting a field to allow unlimited values. But I want to build this my self, as I'm not using a field, but my own costum database.
How do I accomplish this through Form API?