cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FabianPowerAppM
Helper I
Helper I

Change Combobox Searchfield with Button/RadioBtn?

Hi, in my CombBox the user should decide between either he wants to search with the title or with the itemnumber from the itemlist. This happens with a ComboBox. I tryed already "

If(Radio1.Selected.Value="ItemNum",["ItemNum"],["Title"])

as SearchField Option. This dont work. Do you guys can help me?

2 REPLIES 2
Drrickryp
Super User
Super User

@FabianPowerAppM 

I would recommend using a combobox with a double layout (selected in the edit fields option on the right side of the screen) with the primary and secondary fields as Title and Itemnum.  Then set the Search Fields property to ["Title","ItemNum"].  In my app it looks like this and can search on both fields. !1.jpg You can add additional fields as well if you want.  In the second screenshot, I added a column concatenating accountnumber with city and added that column to my Search fields.  Now the search will work on the city, account name and account number. 

!2.jpg

Drrickryp
Super User
Super User

@FabianPowerAppM 

I would recommend using a combobox with a double layout (selected in the edit fields option on the right side of the screen) with the primary and secondary fields as Title and Itemnum.  Then set the Search Fields property to ["Title","ItemNum"].  In my app it looks like this and can search on both fields. !1.jpg You can add additional fields as well if you want.  In the second screenshot, I added a column concatenating accountnumber with city and added that column to my Search fields.  Now the search will work on the city, account name and account number. 

!2.jpg

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,724)