If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    r3bhatia  11 years ago

    Hi...Just wanted to know isto how do we use this custom validator?

     

    Can you please give a small example..

     

    Thanks

    Rahul

Commented on:

IS_NOT_EMPTY_IF_OTHER validator requires filling field A if field B has content. If field B is empty, field A may be empty, too. Example: requires confirm_password if password is present. Note: "other" argument may be a list of fields. If any of them is not empty, the field must be filled

Hosting graciously provided by:
Python Anywhere