Hi,
Ahhh see if you have explained this (below underlined) I
I'm trying to build a search box for a gallery that allows searching on patient's name, birth year, age and ID. I'm having trouble converting the birth year and ID (which is the Sharepoint ID column) to text for them to work in my search.
In the first place with the picture it would have been 100000000000000000000000000 times easier to help as I would have said.. its not supported. Seach Only works with strings. The reason for the error on DOB, is because you are typing in a Formula, where the Expression/Function Search requires a FIELD name, not a Value which is what you are trying to make it do.
So that is why you need to use Filter for the Non-String Columns but you only have 1 Input, the text box.. what you need is the ability to let them type a string AND select a date and 1 for the ID as its a number or you have to create a couple of Outputs and Combine them
1. Your Search
2. A Filter on the Datasource where Date = (convert their string to date) OR ID = (concert their string to int). The issue is, you don't know if its a valid Date or a Valid ID, so you have to add extra code to check for that or you'll fail.
Does your Gallery automatically get assigned (in the items) to the DataSource or do you have a Collection?
Because you have to merge multiple "queries" Search + Filter to get what you want but they have to be done separately not together.