# Using Conditional Visible on text for filtering

**URL:** <https://forum.finsweet.com/t/using-conditional-visible-on-text-for-filtering/582>\
**Category:** Attributes\
**Tags:** cmsfilter\
**Created:** [May 11, 2023, 8:12pm UTC](https://forum.finsweet.com/t/using-conditional-visible-on-text-for-filtering/582 "2023-05-11T20:12:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigthomasonline](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/craigthomasonline/32/425_2.png) [@craigthomasonline](https://forum.finsweet.com/u/craigthomasonline)\
**Post date:** [May 11, 2023, 8:12pm UTC](https://forum.finsweet.com/t/using-conditional-visible-on-text-for-filtering/582/1 "2023-05-11T20:12:06Z")

</div>

Hi, I am struggling with Attributes and filtering.

I am using radio buttons to filter.

I have access hire equipment that can be either on Rough Ground, Flat Ground or both.

I created 2 switches in the CMS Rough Ground and Flat Ground.

I have then added 2 text boxes called the same with condition viability if they are TRUE.

Now I thought that if they are not visible then the filter will not read them.

I have done a loom to explain.

Thanks for any help.

https://www.loom.com/embed/a422a5ea414a4be5b2f2d6d693ac8e64

> **[Access Hire](https://atp-hire.webflow.io/access-hire)**
>
> Find the best access hire solutions for your project. Access Hire experts for all your equipment needs. Get in touch for a quote and reliable service.

[https://preview.webflow.com/preview/atp-hire?utm\_medium=preview\_link&utm\_source=design[…]963903d31f&pageId=63aec8a9d94154e433935629&workflow=preview](https://preview.webflow.com/preview/atp-hire?utm_medium=preview_link&utm_source=designer&utm_content=atp-hire&preview=b4f1b737dfb7d44bce2c74963903d31f&pageId=63aec8a9d94154e433935629&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:** [May 11, 2023, 9:48pm UTC](https://forum.finsweet.com/t/using-conditional-visible-on-text-for-filtering/582/2 "2023-05-11T21:48:23Z")

</div>

Hey, @craigthomasonline!

You can achieve this by doing these changes:

1. Add an embed to your item and this embed should have the field of your switches, one embed per switch. Add the attributes `fs-cmsfilter-field = rough-ground` and `fs-cmsfilter-field = falt-ground` to these embeds  

2. These embeds will now show `true` or `false` on your cards, you can hide these fields and leave the text you were using before. Remove the attributes from the text you were using if you wish to keep it.  

3. Replace the radio buttons with checkboxes and move the `fs-cmsfilter-field = rough-ground` and `fs-cmsfilter-field = falt-ground` attributes from the label to your checkbox input

---

<div class="post-metadata">

**Author:** ![craigthomasonline](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/craigthomasonline/32/425_2.png) [@craigthomasonline](https://forum.finsweet.com/u/craigthomasonline)\
**Post date:** [May 15, 2023, 8:35pm UTC](https://forum.finsweet.com/t/using-conditional-visible-on-text-for-filtering/582/3 "2023-05-15T20:35:20Z")

</div>

> [@Support-Luis](#):
>
> fs-cmsfilter-field

Thank you very much for that it works perfectly.

---

<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:** [May 15, 2023, 10:31pm UTC](https://forum.finsweet.com/t/using-conditional-visible-on-text-for-filtering/582/4 "2023-05-15T22:31:09Z")

</div>

You are welcome! 💪

---

<div class="post-metadata">

**Author:** ![rahul.mstest](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/rahul.mstest/32/2214_2.png) [@rahul.mstest](https://forum.finsweet.com/u/rahul.mstest)\
**Post date:** [June 25, 2024, 2:16pm UTC](https://forum.finsweet.com/t/using-conditional-visible-on-text-for-filtering/582/5 "2024-06-25T14:16:28Z")

</div>

i have one question: how to achieve Rough Ground or Flat Ground conditions with cmsfilter, using the checkbox

---

<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:** [June 25, 2024, 6:50pm UTC](https://forum.finsweet.com/t/using-conditional-visible-on-text-for-filtering/582/6 "2024-06-25T18:50:59Z")

</div>

Hey @rahul.mstest! Toggles are just stylish checkboxes, you’ll just need to change the attribute from the input to the label and instead of using the embed that show “true” or “false” you’ll just have to add a text element with the same identifier as your checkboxes

So, for example, the checkbox labels should both have `fs-cmsfilter-field = ground-type` and your text element on your CMS item should also have `fs-cmsfilter-field = ground-type`.

Let me know if you have any issues!
