Problem/Motivation

A Booking form field defined as "required" is allowing submissions even when left empty.

Steps to reproduce

  1. Add Booking field.
  2. Set as required.
  3. Submit without selecting a date.

Proposed resolution

Properly validate Booking fields.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

electric.larry created an issue. See original summary.

electric.larry’s picture

Assigned: Unassigned » electric.larry

electric.larry’s picture

Assigned: electric.larry » Unassigned
Status: Active » Needs review
StatusFileSize
new3.53 KB

Here's the patch that should fix the validation for a required Webform Booking field.

rfmarcelino’s picture

Status: Needs review » Fixed

Thank you, @electric.larry!
(Merge requests are, for some reason, failing. If it fails, I'll add the code via commit)

  • rfmarcelino committed 5b8bfa82 on 1.1.x
    #3501857 - Required Booking form field allows empty submission
    

rfmarcelino’s picture

Status: Fixed » Closed (fixed)