cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DAVIDPOWELL
Post Prodigy
Post Prodigy

radio button choices and filter based on radio selection

I have a search box called  "FilterTextBox"

I have a radio button with 3 choices

Brand

Supplier_Name

Supplier_Number

 

I'm using this formula in the "Items" property for a Gallery1 

Filter(v_sst_source_select_search,StartsWith(Supplier_Name,FilterTextBox.Text))

What I need:

If i choose "Brand" in the radio option choice: then use

Filter(v_sst_source_select_search,StartsWith(Brand,FilterTextBox.Text))

If i chose Supplier_Name then

Filter(v_sst_source_select_search,StartsWith(Supplier_Name,FilterTextBox.Text))

If i choose Supplier_Number then:

Filter(v_sst_source_select_search,StartsWith(Supplier_Number,FilterTextBox.Text))

 

something like this ?

If(Radio1.Selected.Value = "Brand", Filter(v_sst_source_select_search,StartsWith(Brand,FilterTextBox.Text)),
Radio1.Selected.Value ="Supplier_Name", Filter(v_sst_source_select_search,StartsWith(Supplier_Name,FilterTextBox.Text)),
Radio1.Selected.Value = "Supplier_Number", Filter(v_sst_source_select_search,StartsWith(Supplier_Number,FilterTextBox.Text)))

 

 

 

 

Thanks

David

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

HI @DAVIDPOWELL ,

Try

Filter(
   v_sst_source_select_search,
   If(
      Radio1.Value = "Brand",   
      StartsWith(Brand,FilterTextBox.Text),
      Radio1.Value = "Supplier_Name",   
      StartsWith(Supplier_Name,FilterTextBox.Text),
      Radio1.Value = "Supplier_Number",   
      StartsWith(Supplier_Number,FilterTextBox.Text)
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

1 REPLY 1
WarrenBelz
Super User III
Super User III

HI @DAVIDPOWELL ,

Try

Filter(
   v_sst_source_select_search,
   If(
      Radio1.Value = "Brand",   
      StartsWith(Brand,FilterTextBox.Text),
      Radio1.Value = "Supplier_Name",   
      StartsWith(Supplier_Name,FilterTextBox.Text),
      Radio1.Value = "Supplier_Number",   
      StartsWith(Supplier_Number,FilterTextBox.Text)
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (64,309)