# Is it possible to block the user from submitting a form if it does not comply with the minimum and maximum value limits?

**URL:** <https://community.glideapps.com/t/is-it-possible-to-block-the-user-from-submitting-a-form-if-it-does-not-comply-with-the-minimum-and-maximum-value-limits/60761>\
**Category:** Ask for Help\
**Created:** [April 20, 2023, 1:50pm UTC](https://community.glideapps.com/t/is-it-possible-to-block-the-user-from-submitting-a-form-if-it-does-not-comply-with-the-minimum-and-maximum-value-limits/60761 "2023-04-20T13:50:11Z")\
**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:** [April 20, 2023, 1:50pm UTC](https://community.glideapps.com/t/is-it-possible-to-block-the-user-from-submitting-a-form-if-it-does-not-comply-with-the-minimum-and-maximum-value-limits/60761/1 "2023-04-20T13:50:11Z")

</div>

Hey, i have a number entry with max length of 14 characters, and every time my user put more than that it keeps working! But, if it puts more than 14 it gets a wrong response of the app. So i want to block it from receiving a response from the application if it puts more than 14 characters. Can i do that?

---

<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:** [April 20, 2023, 3:21pm UTC](https://community.glideapps.com/t/is-it-possible-to-block-the-user-from-submitting-a-form-if-it-does-not-comply-with-the-minimum-and-maximum-value-limits/60761/2 "2023-04-20T15:21:08Z")

</div>

Odds are youll need to use a custom form vs native form as there currently is no way to set conditions on when the form can be submitted outside of making certain components required.

Using a custom form, youd have to find a way to count the # of chars entered into your text entry and show a submit button if 14 or less.

---

<div class="post-metadata">

**Author:** ![Lucas\_Malguy1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_malguy1/32/54607_2.png) [@Lucas\_Malguy1](https://community.glideapps.com/u/Lucas_Malguy1)\
**Post date:** [April 20, 2023, 3:27pm UTC](https://community.glideapps.com/t/is-it-possible-to-block-the-user-from-submitting-a-form-if-it-does-not-comply-with-the-minimum-and-maximum-value-limits/60761/3 "2023-04-20T15:27:08Z")

</div>

Hi Joanna,

As answered in your other post, yes you can do it by using the “text length” column if it’s a text entry or an If then else columns if its a number, and check it’s more than 14 characters.

If condition is not matched, in your button, add a notifications saying it’s more than 14 characters, otherwise, do the actions.

> Yes, max and min length for text entry only work in forms.  
> You could count the length of the text entry using a “text lengh” column.  
> Then on your button action, you set this logic:  
> IF, the data entered by user \> than your limit of character THEN show notifications “max characters X”.

[From your previous post](https://community.glideapps.com/t/number-input-that-accepts-0-left/60762)

---

<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:** [April 24, 2023, 1:20pm UTC](https://community.glideapps.com/t/is-it-possible-to-block-the-user-from-submitting-a-form-if-it-does-not-comply-with-the-minimum-and-maximum-value-limits/60761/4 "2023-04-24T13:20:56Z")

</div>

Hey Lucas!

So, I am trying to do that, but i cannot find my “text length” column on the options of my column sources. I [recorded a video to show you](https://www.loom.com/share/f46fcf6dd2c34379aa851b7dc1648d17), can you see what i am doing wrong?

And, after doing that, i need to send the information inputed by the user to the other column “CNPJ/search” so all the logic works, i need to use the “Set Column” action? I dont know if it will work, because my “cnpj/search” is user specific, and i saw that “Text length” cannot be user specific…

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 24, 2023, 1:33pm UTC](https://community.glideapps.com/t/is-it-possible-to-block-the-user-from-submitting-a-form-if-it-does-not-comply-with-the-minimum-and-maximum-value-limits/60761/5 "2023-04-24T13:33:33Z")

</div>

> [@Joanna\_Delg](#):
>
> i cannot find my “text length” column on the options of my column sources

You are trying to set the source of your entry component to a computed column. You can’t write values to a computed column as they don’t store values. They only compute them.

> [@Joanna\_Delg](#):
>
> And, after doing that, i need to send the information inputed by the user to the other column “CNPJ/search”

You should be writing to the search column. The purpose of the Text Length column is to then compute the length of the value in the search column.

---

<div class="post-metadata">

**Author:** ![Lucas\_Malguy1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_malguy1/32/54607_2.png) [@Lucas\_Malguy1](https://community.glideapps.com/u/Lucas_Malguy1)\
**Post date:** [April 24, 2023, 2:03pm UTC](https://community.glideapps.com/t/is-it-possible-to-block-the-user-from-submitting-a-form-if-it-does-not-comply-with-the-minimum-and-maximum-value-limits/60761/6 "2023-04-24T14:03:29Z")

</div>

As @Jeff_Hager said, you would need to have at least 2 columns, one containing the text and the other calculating the number of characters in the text.

 ![Capture d’écran 2023-04-24 à 16.01.39](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/7/37c58958989ed927239b84ef46d7095749fd553e.png)  
 ![Capture d’écran 2023-04-24 à 16.01.45](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/c/7c00ec4caea0c08aa1526f0f2e4898f518eec1c6.png)  
 ![Capture d’écran 2023-04-24 à 16.01.49](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/2/b233a5fcb093b06eba9c3e0d1bd7a3931bde6074.png)

Then if true allow your user to go on to the next step in your app.

---

<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:** [April 24, 2023, 2:03pm UTC](https://community.glideapps.com/t/is-it-possible-to-block-the-user-from-submitting-a-form-if-it-does-not-comply-with-the-minimum-and-maximum-value-limits/60761/7 "2023-04-24T14:03:36Z")

</div>

> [@Jeff\_Hager](#):
>
> You are trying to set the source of your entry component to a computed column. You can’t write values to a computed column as they don’t store values. They only compute them.

hey!!! i didt it, thank you for your help!

I created a relation between my “search column” and the “text lenght” column, than i created between the “text length” column and the response for the user.
