SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
580 stars 353 forks source link

Form Builder Logic Allows Incomplete Section Submission #5822

Closed Jchinlcbc closed 7 months ago

Jchinlcbc commented 7 months ago

Description

If a user fills out a form with a single selector [(a field)] with [conditional] sections that show up after selecting an item screencapture-rocksolidchurchdemo-workflowentry-25-2024-04-04-12_21_55 [if you try to submit (which should fail)] then go back to 1 item screencapture-rocksolidchurchdemo-workflowentry-25-2024-04-04-12_22_27 it will still let you submit the form.

Actual Behavior

When you create a form with a Single-Select that will show/hide conditionals based off of the value, it allows you to partially fill out the required field, change back to a hide the section and submit partially filled out information.Screenshot 2024-04-04 at 11 49 23 AM

Expected Behavior

Either

  1. If a section has multiple required fields, if one of them is filled out, make the section required to complete the form
  2. Don't show hidden field data on form submissions

Steps to Reproduce

1.) Create a form in form builder 2.) Add a required Single-Select field to the form with more than 1 value. 3.) Add a Section field for each required field. 4.) Within each Section add required fields. 3.) In each Section configuration set a conditional to show {this section} if [All] of the following match > [{Single-Select}] is [{n & n+}] ei show section 2 if 2,3,4... are selected 4.) Save your form 5.) Go to https://www.rocksolidchurchdemo.com/workflowentry/ {your work flow entry id} 6.) select on the selector 2 7.) Partially fill out the section 2 (the section that just populated). 8.) Go back to the selector and select 1 9.) fill out section 1, and submit 10.) See in the submissions of your form builder that you are able to submit the form although not all of the required fields in section 2 are filled out.

Issue Confirmation

Rock Version

16.2

Client Culture Setting

en-US