alterRequireValid(args)
args
is a dictionary with the following keys:
val
- The current value of this fieldfield_name
- The name of this fieldrequire_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.