Skip to content
Snippets Groups Projects
  • Jared Hancock's avatar
    81bcb80a
    Allow both internal and required fields · 81bcb80a
    Jared Hancock authored
    Previously, clients would not be able to create tickets if an internal,
    required field existed on any of the forms presented to the user. Instead,
    they would be stuck at permanent validation failure because there was no
    data for a required field not shown.
    
    This patch adds a feature to the form and dynamicFormEntry objects'
    isValid() method to receive a callable to filter which fields' errors should
    be added to the form's errors list. This allows for more complex validation
    where in some cases, validation errors should not be considered on some
    fields.
    
    Fixes #45
    81bcb80a
    History
    Allow both internal and required fields
    Jared Hancock authored
    Previously, clients would not be able to create tickets if an internal,
    required field existed on any of the forms presented to the user. Instead,
    they would be stuck at permanent validation failure because there was no
    data for a required field not shown.
    
    This patch adds a feature to the form and dynamicFormEntry objects'
    isValid() method to receive a callable to filter which fields' errors should
    be added to the form's errors list. This allows for more complex validation
    where in some cases, validation errors should not be considered on some
    fields.
    
    Fixes #45