I was after a little help on something I've been stuck on and was wondering if someone could give me a little guidance?
Basically, I want to be able to run a specific JS function after the user clicks on a result from the search widget list of results, the use case would be: a user clicks in the search widget and enters some text, the suggested results popup up below the widget and as soon as a user clicks on a result this calls a function that I have written (hopefully with an id that relates back to the clicked search result).
Thanks, Chris.
Solved! Go to Solution.
Chris,
The 4.3 equivalent url is this one:
You can use the "select-result" event to run your own function: Search | API Reference | ArcGIS API for JavaScript 3.20
This is the correct answer for 3.x, I can only mark one as correct and that was the answer below as I'm working with JS API 4,3 I would mark them both correct if it was possible. Thanks for your help!
No problem at all!
Thanks for your response, sorry, I forgot to mention I'm using API 4.3 and from what I can see your solution is for API 3.x. I will look for an API 4.3 equivalent, thanks again.
Chris,
The 4.3 equivalent url is this one: