[Autocomplete] Pass route parameter to autocomplete controller #2570
Unanswered
wouter-vs
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a autocomplete field type that is used in the same form multiple times using a CollectionType.
The fields are dynamically added with a Event Listener.
Each fields function is the same but the data they are fetching should be depended on an id.
I'm trying to make the route (to a custom controller that gets data from Elastic) dynamic by passing a parameter to the controller.
This way the same route/controller can be used for every field in the form.
But I can't figure out how to do this.
I tried creating a js controller to manipulate the url that is called, but I can't find where I can do this.
How can this be done?
Beta Was this translation helpful? Give feedback.
All reactions