Search widget as part of HTML form.

05-07-2021 03:43 AM
New Contributor

Good day,


Could someone please assist / advise on how I could use the autocomplete search widget as part of a HTML form, in order to store the output result in a name attribute / value (please see example below)?



<form action= "/search" method="POST"> 

   <div id="searchDiv" name="location" placeholder="Search by city"></div>        
   <button type="submit">Search</button>



I am currently using the below search widget:








0 Kudos
1 Reply
Esri Regular Contributor

You might have more luck using the SearchViewModel for this workflow:


0 Kudos