# Form container can submit form even though some required fields are blank

**URL:** <https://community.glideapps.com/t/form-container-can-submit-form-even-though-some-required-fields-are-blank/67198>\
**Category:** Report a Bug\
**Created:** [October 23, 2023, 5:11am UTC](https://community.glideapps.com/t/form-container-can-submit-form-even-though-some-required-fields-are-blank/67198 "2023-10-23T05:11:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spamtes](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@spamtes](https://community.glideapps.com/u/spamtes)\
**Post date:** [October 23, 2023, 5:11am UTC](https://community.glideapps.com/t/form-container-can-submit-form-even-though-some-required-fields-are-blank/67198/1 "2023-10-23T05:11:55Z")

</div>

I would like each field in a form container to show up one by one to not overwhelm the user and keep their attention. I do this by creating visibility conditions for each field.

I tried setting the default value to a invalid one while it’s not visible, but the form can still be submitted while required values aren’t visible.

**Describe the bug:**

- Forms can be submitted while **Required** fields are blank.

(Similar to  
[Submit with blank form required field](https://community.glideapps.com/t/submit-with-blank-form-required-field/14455)  
and  
[Form Submission is allowed without filling mandatory fields - #7 by Manan\_Mehta](https://community.glideapps.com/t/form-submission-is-allowed-without-filling-mandatory-fields/16123/7))

**Expected behavior:**

- Submit should not be allowed until all required fields are filled with a value.

**How to replicate:**  
Create a Form Container, then:

1. Create Text Input Field ‘A’ (any type).
2. Create Number Input Field ‘B’ (any type) and set to required.
3. Make Input Field ‘B’ visible only if Field ‘A’ is filled.
4. Observe that the submit button is clickable even though required field ‘B’ is blank.

**Suggested improvement:**

It seems that the ‘submit’ button’s logic is  
_“allow submission if all **visible** required fields are valid”._

Suggest to change to:  
_"allow submission if all **visible** required fields are valid **AND all non-visible required fields are filled / have a default value set".** _

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 20, 2024, 5:12am UTC](https://community.glideapps.com/t/form-container-can-submit-form-even-though-some-required-fields-are-blank/67198/2 "2024-04-20T05:12:20Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
