# Minim value form submission

**URL:** https://community.weweb.io/t/minim-value-form-submission/688
**Category:** How do I?
**Created:** [June 20, 2022, 4:50pm UTC](https://community.weweb.io/t/minim-value-form-submission/688 "2022-06-20T16:50:24Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![TrendiMike](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@TrendiMike](https://community.weweb.io/u/TrendiMike)
#### Post date: [June 20, 2022, 4:50pm UTC](https://community.weweb.io/t/minim-value-form-submission/688/1 "2022-06-20T16:50:24Z")

</div>

Hi all,

I am building a form where on of the inputs by the user is a number. The minimum number that the user can submit will change based on the record loaded to the page. Currently the minimum can only be defined as a static number for all components it seems. Is there another way that this can be circumvented at the moment?

---

<div class="post-metadata">

### Author: ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)
#### Post date: [June 23, 2022, 7:28am UTC](https://community.weweb.io/t/minim-value-form-submission/688/2 "2022-06-23T07:28:50Z")

</div>

Hi @TrendiMike 👋

Can you tell us a bit more about your use case?

Would you want the input field to display the minimum number for that specific user for example or would you want to check that the user entered a number equal or above that minimum number before he can submit the form or both?

---

<div class="post-metadata">

### Author: ![TrendiMike](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@TrendiMike](https://community.weweb.io/u/TrendiMike)
#### Post date: [June 23, 2022, 3:19pm UTC](https://community.weweb.io/t/minim-value-form-submission/688/3 "2022-06-23T15:19:37Z")

</div>

Hey @Joyce, thanks for coming back to me. Should have specified on my part: I am looking at the validation - e.g. restricting the user from entering a number smaller than the minimum specified which will change quite often.

---

<div class="post-metadata">

### Author: ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)
#### Post date: [June 25, 2022, 11:34am UTC](https://community.weweb.io/t/minim-value-form-submission/688/4 "2022-06-25T11:34:19Z")

</div>

You can do this with an html attribute on the input.

Create a new attribute called pattern

Use regular expression to indicate what the minimum value is.

HTML attributes can be bound, so you can set the condition in the regular expression based on what you need.

If you have a pattern on the input the form with check against that onSubmit.

---

<div class="post-metadata">

### Author: ![TrendiMike](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@TrendiMike](https://community.weweb.io/u/TrendiMike)
#### Post date: [June 26, 2022, 3:18pm UTC](https://community.weweb.io/t/minim-value-form-submission/688/5 "2022-06-26T15:18:24Z")

</div>

@kevinwasie thanks for the reply. I was hoping there would instead be an option to use weweb formulas. @Joyce is there a plan to enrol that as a customisation in the near future?

---

<div class="post-metadata">

### Author: ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)
#### Post date: [June 26, 2022, 4:16pm UTC](https://community.weweb.io/t/minim-value-form-submission/688/6 "2022-06-26T16:16:34Z")

</div>

@TrendiMike You can also just use the min attribute on the input.

Create an attribute called “min” on the input, and use the binding to set it to whatever you want.

 ![Screen Shot 2022-06-26 at 12.16.24 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/ff6cc26498d0fbe08ae1d1d6dff50fc80429c991.png)

---

<div class="post-metadata">

### Author: ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)
#### Post date: [June 27, 2022, 2:12pm UTC](https://community.weweb.io/t/minim-value-form-submission/688/7 "2022-06-27T14:12:44Z")

</div>

> [@TrendiMike](#):
>
> @Joyce is there a plan to enrol that as a customisation in the near future?

Hey @TrendiMike, no immediate plans but I’ve added your feedback to our user research so the tech team can review it 🙂

Is it a priority for you or does Kevin’s solution work for you?

---

<div class="post-metadata">

### Author: ![TrendiMike](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@TrendiMike](https://community.weweb.io/u/TrendiMike)
#### Post date: [June 27, 2022, 2:26pm UTC](https://community.weweb.io/t/minim-value-form-submission/688/8 "2022-06-27T14:26:22Z")

</div>

Hi @Joyce, I’ll come back to you on @kevinwasie solution very soon 🙂 But going forward I think it would be logical to have minimum and maximum as a formula control seeing how most other attributes for numerical input on the form are currently formula configurable.

---

<div class="post-metadata">

### Author: ![tillyboard](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/tillyboard/32/3317_2.png) [@tillyboard](https://community.weweb.io/u/tillyboard)
#### Post date: [October 8, 2023, 3:44pm UTC](https://community.weweb.io/t/minim-value-form-submission/688/9 "2023-10-08T15:44:27Z")

</div>

> [@TrendiMike](#):
>
> efined as a static num

could it be that this function no longer works?
