# Restrict numerical field to a number range

**URL:** <https://forum.adalo.com/t/restrict-numerical-field-to-a-number-range/32728>\
**Category:** Get Help\
**Created:** [October 10, 2022, 4:20pm UTC](https://forum.adalo.com/t/restrict-numerical-field-to-a-number-range/32728 "2022-10-10T16:20:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wadesolomon](https://avatars.discourse-cdn.com/v4/letter/w/ebca7d/32.png) [@wadesolomon](https://forum.adalo.com/u/wadesolomon)\
**Post date:** [October 10, 2022, 4:20pm UTC](https://forum.adalo.com/t/restrict-numerical-field-to-a-number-range/32728/1 "2022-10-10T16:20:43Z")

</div>

I am developing an app to allow users to provide reviews and rate movies on a 1-5 scale and later display the average score. That being said, I have a numerical field to capture the movie rating. However, is there a way to restrict that field to a predefined range (i.e. 1 -5)? Or alternatively set it as a dropdown list while still being able to use it for calculations/formulas?

---

<div class="post-metadata">

**Author:** ![k86305](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@k86305](https://forum.adalo.com/u/k86305)\
**Post date:** [October 10, 2022, 7:17pm UTC](https://forum.adalo.com/t/restrict-numerical-field-to-a-number-range/32728/2 "2022-10-10T19:17:46Z")

</div>

I have use a number property to capture the user’s five star rating (1 to 5) in my App. You can see the logic used in the app in attached picture.

Action Type = Update (when pressing any star rating circle).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/1/3/134a751fb1c7a854942a1f797cbd6bea9b5f2bd7.png)

---

<div class="post-metadata">

**Author:** ![theadaloguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/theadaloguy/32/8023_2.png) [@theadaloguy](https://forum.adalo.com/u/theadaloguy)\
**Post date:** [October 11, 2022, 9:59am UTC](https://forum.adalo.com/t/restrict-numerical-field-to-a-number-range/32728/3 "2022-10-11T09:59:56Z")

</div>

Drop-down you can do, just have a collection for the options. So your have a collection ‘rating options’ with 5 records - 1,2,3,4,5 and make the drop-down a list of rating options

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [October 21, 2022, 10:00am UTC](https://forum.adalo.com/t/restrict-numerical-field-to-a-number-range/32728/4 "2022-10-21T10:00:04Z")

</div>

Closed on October 21, 2022, 10:00am UTC

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