[web2py] Re: Need to add form "warnings" in addition to "errors"

2018-08-23 Thread Joe Barnhart
Well, this idea works... basically. But I need to change the DIV enclosing my "warning" message from class "error" to "warning" to get my preferred yellow color. Now here's where it gets interesting... I can change the div using jQuery on the view. BUT that still shows me a "flash" of red be

[web2py] Re: Need to add form "warnings" in addition to "errors"

2018-08-22 Thread Joe Barnhart
I hate to answer my own post, but what if I did something in a customer Validator? What if the error returned by my validator was something like SPAN("blah blah", _class="warning"). Presumably I could search the FORM using elements() finding my SPANs and then modify the enclosing DIVs to be c