[Geomoose-users] drop down menu in search service
Jim Klassen
klassen.js at gmail.com
Sun Dec 9 13:14:46 PST 2018
Yep, use a field type of 'select' when creating the search service (in app.js).
Example:
app.registerService('search', SearchService, {
fields: [
{type: 'select', label: 'Owner Name', name: 'OWNER_NAME',
options: [
{ label: "Smith", value: "Smith" },
{ label: "Matt", value: "Matt" }
]
},
{type: 'text', label: 'Street/Address', name: 'OWN_ADD_L1'},
{type: 'text', label: 'City/State/ZIP', name: 'OWN_ADD_L3'}
],
searchLayers: ['vector-parcels/parcels']
});
On 12/9/18 2:45 PM, Stathis G. Arapostathis wrote:
> Dear Sirs / Madams
>
> I was wondering on how I could have a drop down menu, with a
> pre-selected list of choices instead of just typing words while using
> the search service.
>
> It is just a matter of difficulties regarding the Greek language. Many
> words have synonyms which are commonly used; along with the greek
> punctuation, it would be suit me better to have a drop down menu.
>
> Is that possible?
>
> thank you very much for all your help so far.
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
> Virus-free. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
>
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20181209/528225fa/attachment.html>
More information about the Geomoose-users
mailing list