[web2py] Re: autocomplete depending on other form field

2014-07-09 Thread Annet
Hi Jim, Thanks for you reply. I've been working on this function on and off, so far this works: In the view: $(function() {$("#no_table_name").autocomplete({source: "{{=URL('jqueryui', 'organization_autocomplete')}}", minLength: 2});}); $(function() {$("#no_table_tag").autocomplete({source: "

[web2py] Re: autocomplete depending on other form field

2014-06-24 Thread Jim S
I use this javascript for my autocompletes... $(document).ready(function() { $( "#no_table_requestor" ).autocomplete({ source: "{{=URL('contacts','autocomplete')}}", select: function(event, ui) { $( "#no_table_requestor_id" ).val(ui.item.id);