[web2py] Re: Grid 2 list boxes first list box to restrict values in second

2014-03-21 Thread 黄祥
you guys are amazing, made a long code into simplest and shortest one e.g. *# 1* {{=form}} jQuery(document).ready(function(){ if(jQuery('#check_in_is_booking').prop('checked')){ jQuery('#check_in_booking_no__row').show(); jQuery('#check_in_court__row').hide(); jQuery(

[web2py] Re: Grid 2 list boxes first list box to restrict values in second

2014-03-20 Thread Massimo Di Pierro
http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=show_if#Conditional-fields On Thursday, 20 March 2014 17:26:57 UTC-5, Dan Kozlowski wrote: > > Is there any way within a grid with 2 list boxes that the selected value > in the first list box can sub select the the second t

[web2py] Re: Grid 2 list boxes first list box to restrict values in second

2014-03-20 Thread 黄祥
i think you can achieve it using jquery. ref: http://web2py.com/books/default/chapter/29/11/jquery-and-ajax#Conditional-fields-in-forms best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g