Re: [web2py] Re: Conditional Fields & Validators

2020-12-06 Thread James O' Driscoll
I had to remove the use of show_if and instead implement custom JS to show/hide fields based on the boolean field. With onvalidation function being used to preform validation. Not sure that the show_if feature is properly implemented with regard to the validation system. Regards, James On F

Re: [web2py] Re: Conditional Fields & Validators

2020-12-04 Thread James O' Driscoll
Hey mate, I got around that specific validator, however the is_in_set validator causes the problem. (It’s needed to create the select field in HTML) I managed to get around it with onvalidation, doing the validation based on a state of the control but this is adding more logic on the backend and

Re: [web2py] Re: Conditional Fields

2012-03-22 Thread Richard Vézina
Ok, if I am understanding correctly you want a complex validation. I mean validating a field base on the input of an other field. Default web2py validator are applying only to one field at a time. It is possible to do what you ask for, but it will require that you implement your own validator. You