cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
smujicacj
Level: Powered On

Filter Gallery with Text Input and Yes/No

Although I have read similar posts relating to Yes/No issues, they have not quite fix my issue. I have Gallery1 which loads based on TextInput1.Text but I also want those results to be further filter by a Yes/No column on the Sharepoint list.

 

Currently:

Gallery1: Items -> Filter(SharepointList,TextInput1.Text in Name)

 

I have considered a Checkbox to make the extra filter, thus allowing the user to see the entire list, based on their search, while also letting them filter the list. So far I have not sure how to make it work.

 

Thank you

2 REPLIES 2
Community Support Team
Community Support Team

Re: Filter Gallery with Text Input and Yes/No

Hi @smujicacj ,

 

You can achieve with follow below steps:

1. Insert a Toggle control, set its OnChange property to:

If(Toggle1.Value=true,Set(V1,"Yes"),Set(V1,"No"))

2. Set below formula in the Items property of the gallery control:

If(IsBlank(V1),Filter(SharepointList,TextInput1.Text in Name),Filter(SharepointList,TextInput1.Text in Name,V1 in YesorNo.Value))

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
smujicacj
Level: Powered On

Re: Filter Gallery with Text Input and Yes/No

Thank you for the recommendation; however, is currently not changing the results and the issue is with the last portion of the formula. On your original reply you mentioned to use V1 in YesorNo.Value but that gave me a error. I went ahead and changed it to where to column where the Yes/No are (I think that was what you meant) but there is no option to do .Value at the end. Any recommendation to get areound that?

 

If(IsBlank(V1),Filter('Statement of Ed - Intake List',TextInput1.Text in 'Student''s Number'),Filter('Statement of Ed - Intake List',TextInput1.Text in 'Student''s Number',V1 in 'Statement of Ed - Intake List'.'Did you reported? (Advisor)'))

 

Thank you

 

 

 

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,579)