SubmittedForm: stricter validation for required fields

  • Hi drewm

    At the moment entering whitespace into a required field passes PerchAPI_SubmittedForm validation. While I realise this matches the HTML5 built-in validation, I think allowing whitespace-only values is rarely desirable. It would be great if the validation for required fields is stricter by default, or at least if we had an option to turn on stricter validation.