Creating a search function using an input field

Hi all,

I’m trying to create a kind of ‘search function’ by having multiple buttons and an input field. For arguments sake we can call the buttons “A, B, C, D, E, F”, when I type " f " into the input field, I would like all buttons but " F " to be switched off. I can’t find much on this other than I may need to create a list to achieve this.

Any advice would be a big help. thank you

-M

I’m a little confused on the context, unless you have a crazy amount of buttons.

but I think the direction you would go to achieve this is code so

on “search”, you go through each button and check its Text content, and if the button’s text content includes what was in the search, leave it enabled. If it doesn’t, then disable the button or its button component.

1 Like