# Trying to use a text input field as a maximum range amount for filters but it is not working

**URL:** <https://forum.finsweet.com/t/trying-to-use-a-text-input-field-as-a-maximum-range-amount-for-filters-but-it-is-not-working/2261>\
**Category:** Attributes\
**Created:** [December 13, 2023, 7:50pm UTC](https://forum.finsweet.com/t/trying-to-use-a-text-input-field-as-a-maximum-range-amount-for-filters-but-it-is-not-working/2261 "2023-12-13T19:50:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![caleb.raney](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/caleb.raney/32/1349_2.png) [@caleb.raney](https://forum.finsweet.com/u/caleb.raney)\
**Post date:** [December 13, 2023, 7:50pm UTC](https://forum.finsweet.com/t/trying-to-use-a-text-input-field-as-a-maximum-range-amount-for-filters-but-it-is-not-working/2261/1 "2023-12-13T19:50:52Z")

</div>

Hey there,

I’m trying to use a text input field to filter a maximum price range instead of using the range slider element.  
I have a list of artworks that each have a price and I want to be able to use a text field to allow users to filter out items based on a maximum price that they can afford.

The reason I’m not wanting to use the range slider is that the price range for each artist is going to vary a lot and so I don’t want to have set maximum values within that slider.

I’ve setup a text input field with type number, the correct identifier, and an attribute of `fs-cmsfilter-range="to"` but rather than working as a range the filter is looking for that specific text string eg: if I set the max price to 200 it is showing results with 20 and 2,000 instead of anything under 200.

Any help would be appreciated  
[Live link](https://oovra-portfolios-staging.webflow.io/artists/chad-little)  
Password is: oovra  
[Read-only link](https://preview.webflow.com/preview/oovra-portfolios-staging?utm_medium=preview_link&utm_source=dashboard&utm_content=oovra-portfolios-staging&preview=5e08517158e003c43ac5c50e85b34d1b&workflow=preview)

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [December 15, 2023, 11:10am UTC](https://forum.finsweet.com/t/trying-to-use-a-text-input-field-as-a-maximum-range-amount-for-filters-but-it-is-not-working/2261/2 "2023-12-15T11:10:29Z")

</div>

Hey @caleb.raney! You’ll need a field to set the `fs-cmsfilter-range="from"` this field can be hidden as long as the value is always set to 0.

Another approach would be to dynamically set the maximum price for a range slider, I’ve done this before so I can help you with the code if you decide to go this way.

---

<div class="post-metadata">

**Author:** ![caleb.raney](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/caleb.raney/32/1349_2.png) [@caleb.raney](https://forum.finsweet.com/u/caleb.raney)\
**Post date:** [December 15, 2023, 6:29pm UTC](https://forum.finsweet.com/t/trying-to-use-a-text-input-field-as-a-maximum-range-amount-for-filters-but-it-is-not-working/2261/3 "2023-12-15T18:29:34Z")

</div>

Hey @Support-Luis I tried to get that to work by adding an embed number input with a value of 0 and those attributes but it still wasn’t working

```auto
<input type="number" name="Price Minimum" value="0" fs-cmsfilter-field="price" fs-cmsfilter-range="from"/>

```

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [December 18, 2023, 4:08pm UTC](https://forum.finsweet.com/t/trying-to-use-a-text-input-field-as-a-maximum-range-amount-for-filters-but-it-is-not-working/2261/4 "2023-12-18T16:08:34Z")

</div>

@caleb.raney I’m not sure what might be happening. If you add a reangeslider, does the filtering work as expected?
