# Form Elements Obligatory

**URL:** <https://community.glideapps.com/t/form-elements-obligatory/61498>\
**Category:** Ask for Help\
**Created:** [May 8, 2023, 4:52pm UTC](https://community.glideapps.com/t/form-elements-obligatory/61498 "2023-05-08T16:52:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joanna\_Delg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joanna_delg/32/54763_2.png) [@Joanna\_Delg](https://community.glideapps.com/u/Joanna_Delg)\
**Post date:** [May 8, 2023, 4:52pm UTC](https://community.glideapps.com/t/form-elements-obligatory/61498/1 "2023-05-08T16:52:19Z")

</div>

Hey guys! I have a page which i colect some input data from my user, and i want to put mandatory on all the form elements. But i am not using the “Form Container” because it is different to manipulate. I am using the “Form Elements” - “Data”; “Name”; “Number”, etc - and i am not seeing the button “Required” at the options.

There is a way so i can put the mandatory at the form elements?

---

<div class="post-metadata">

**Author:** ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)\
**Post date:** [May 8, 2023, 5:10pm UTC](https://community.glideapps.com/t/form-elements-obligatory/61498/2 "2023-05-08T17:10:18Z")

</div>

When you insert entry/edit components to your screen, in the _General_ tab, at the very bottom, you cannot set the component as _Required_?

 ![CleanShot 2023-05-08 at 19.07.00@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/5/05a730425c511e5f773b5e4be77b87780e387dbd.jpeg)

---

<div class="post-metadata">

**Author:** ![Joanna\_Delg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joanna_delg/32/54763_2.png) [@Joanna\_Delg](https://community.glideapps.com/u/Joanna_Delg)\
**Post date:** [May 8, 2023, 7:13pm UTC](https://community.glideapps.com/t/form-elements-obligatory/61498/3 "2023-05-08T19:13:29Z")

</div>

![Screen Shot 2023-05-08 at 16.12.40](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/0/a04ded782d000ef138a78f3a6f88b0b41e51da99.jpeg)  
No, i cannot set the component as “Required”, because it is not showing up for me ☹

---

<div class="post-metadata">

**Author:** ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)\
**Post date:** [May 8, 2023, 7:55pm UTC](https://community.glideapps.com/t/form-elements-obligatory/61498/4 "2023-05-08T19:55:59Z")

</div>

I assume you have a custom button to submit your custom form. Just make two versions of the button, one with an Accent Color that executes your Add Row action with visibility based on all text fields not being empty and the another button without Accent with visibility based on if any text field is empty, show notification.

---

<div class="post-metadata">

**Author:** ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)\
**Post date:** [May 8, 2023, 8:09pm UTC](https://community.glideapps.com/t/form-elements-obligatory/61498/5 "2023-05-08T20:09:20Z")

</div>

I see. You’re building your own custom form. When you create these, the data is written in real time to the table so really you are not submitting anything.

You’ll find everything you need about custom forms here:

[How to create a custom form](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014)

---

<div class="post-metadata">

**Author:** ![Joanna\_Delg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joanna_delg/32/54763_2.png) [@Joanna\_Delg](https://community.glideapps.com/u/Joanna_Delg)\
**Post date:** [May 8, 2023, 11:05pm UTC](https://community.glideapps.com/t/form-elements-obligatory/61498/6 "2023-05-08T23:05:21Z")

</div>

sorry @Joe_Gabriele, but i didnt understand your suggestion. Do i need to create two different buttons?

---

<div class="post-metadata">

**Author:** ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)\
**Post date:** [May 8, 2023, 11:55pm UTC](https://community.glideapps.com/t/form-elements-obligatory/61498/7 "2023-05-08T23:55:06Z")

</div>

Yes, you’ll need two buttons, but only 1 will show at a time.

You’ll want 1 button (colored) to only display when all text entries are not empty meaning they entered something in all fields. This button will execute your Action.

You’ll want 1 button (white) to only displayed when any of the text elements are empty meaning they missed something. This button will display a notification stating all fields not completed.
