JQAutocomplete and choose "nil"?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JQAutocomplete and choose "nil"?

Mariano Martinez Peck
Hi guys,

I am using an JQAutocomplete to let the user pick an item from a large list. However, later on, the user may want to edit this record and set no item (nil). I couldn't find a way of allowing the user to choose "nil" / none item with JQAutocomplete. Any idea how can I achieve that? 

Thanks in advance, 

--
Mariano
http://marianopeck.wordpress.com

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: JQAutocomplete and choose "nil"?

Johan Brichau-2
Does an empty string as the label for the nil object not work?
Otherwise, what we do is to add a 'cancel' link next to the input field. I think that is often a better choice, also to differentiate between an empty string and 'no' string (nil).

Johan

On 22 May 2014, at 16:18, Mariano Martinez Peck <[hidden email]> wrote:

> Hi guys,
>
> I am using an JQAutocomplete to let the user pick an item from a large list. However, later on, the user may want to edit this record and set no item (nil). I couldn't find a way of allowing the user to choose "nil" / none item with JQAutocomplete. Any idea how can I achieve that?
>
> Thanks in advance,
>
> --
> Mariano
> http://marianopeck.wordpress.com
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside