Incorrect validation submitting webform with mandatory checkboxes

Created on 21 April 2023, about 1 year ago
Updated 24 April 2023, about 1 year ago

Problem/Motivation

I have a webform containing several fields, one of which contains four checkboxes and is marked Mandatory. The form is submitting data to CiviCRM through the Webform CiviCRM Integration module.

If the user selects an existing record in order to update it, at least one of the checkboxes will already have been filled in. If they then update some other field and submit the form it gives a validation error asking that the checkbox field be filled in, even though one box is ticked already. This does not occur on other Mandatory fields.

There is a workaround, to untick and re-tick the box, after which it is accepted, but this is not necessarily obvious to the user.

Steps to reproduce

See attached file containing export of the form. It does however need the CiviCRM database behind it. I don't think the situation arises in pure Drupal use, where the form is only submitting new entries, not performing updates.

If this is actually a CiviCRM Integration issue, please advise.

πŸ› Bug report
Status

Closed: outdated

Version

6.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom maynardsmith

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @maynardsmith
  • Status changed to Postponed: needs info about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    Please isolate the issue to a simple example webform with only the elements and configuration needed to replicate the issue.

  • πŸ‡¬πŸ‡§United Kingdom maynardsmith

    On further investigation it appears that this problem only occurs with particular type(s) of CiviCRM fields (E.g. Tags), which makes it look more like a Webform CiviCRM Integration problem. I will redirect this query unless/until demonstrated otherwise.

  • Status changed to Closed: outdated about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY
Production build 0.69.0 2024