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
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
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
3 matches
Mail list logo