alterRequireValid

alterRequireValid(args)

args is a dictionary with the following keys:

  • val - The current value of this field
  • field_name - The name of this field
  • require_valid - boolean, true if required, false if not.
  • form_def - The form definition.

This callback is called when determining if a field is required for the form to validate.