impress-org / givewp

GiveWP - The #1 Donation Plugin for WordPress. Easily accept donations and fundraise using your WordPress website.
https://givewp.com/
GNU General Public License v3.0
340 stars 191 forks source link

Form Field Manager checkboxes and radio fields with conditional visibility based on another field should not block the donation submission #6833

Closed glaubersilva closed 1 year ago

glaubersilva commented 1 year ago

User Story

Currently, Form Field Manager checkboxes and radio fields with conditional visibility based on another field block the form from submitting.

Details

The workaround is to have a radio or checkbox field with at least two options. The error in the PHP logs is

PHP Fatal error: Uncaught InvalidArgumentException: Field check1 not found in test values. in /some-site/app/public/wp-content/plugins/give/vendor/vendor-prefixed/stellarwp/field-conditions/src/FieldCondition.php:85

Expected Behavior

Is expected that the submission gets finished even if the checkbox or radio option has only one option.

Steps to Reproduce

Acceptance Criteria

canny[bot] commented 1 year ago

This issue has been linked to a Canny post: Form Field Manager checkboxes and radio fields with conditional visibility based on another field block the form from submitting :tada:

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 additional days. Note, if this Issue is reporting a bug, please reach out to our support at https://givewp.com/support. If this is a feature request, please see our feedback board at feedback.givewp.com — that’s the best place to make feature requests, unless you’re providing a PR.