Multiple instances of custom widget
I'm writing a custom widget that will be instantiated multiple times in a form.
How can I reference this specific instance elements in the controller function?
What are you trying to achieve? Normally the controller will have access only to the data manipulated by its template. So even though, we put multiple times the same widget on the a single page, the behavior of the widget should be affected.
By example, here you can find the source code of a fileUpload widget. You can did a test where you declare multiple times the fileUpload widget on a page, you will see that each widget manage its own file.
Thank you for your answer.
In fact, we were building the customAutoCompleteInput, which we found in the repository. Duh!