[web2py] Re: form validation based on value on another form field

2018-01-30 Thread Dave S
On Thursday, July 13, 2017 at 6:26:07 PM UTC-7, 黄祥 wrote: > > yes, thanks for the hints lionel, the show_if works, but the requires part > that depend on another form field is still not work. > no error occured, but the form validation is not work. > i've create another simple webapp too but

[web2py] Re: form validation based on value on another form field

2017-07-13 Thread 黄祥
yes, thanks for the hints lionel, the show_if works, but the requires part that depend on another form field is still not work. no error occured, but the form validation is not work. i've create another simple webapp too but still got the same (before use is_in_db() that refer to another table,

[web2py] Re: form validation based on value on another form field

2017-07-13 Thread Leonel Câmara
That should work. Your show_if is the only thing wrong there, it should be: *db.test.field1.show_if = (db.test.field0 == 4)* -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list