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

Getting error messages when adding formula to Search in Gallery using Sharepoint ID

Hi,

 

I am trying to create a gallery that uses SharePoint list as the data source and to allow users to input the ID on a search box by selecting the "Form Number" from a radio button. The other radio buttons for "Approved" and "Rejected" are working except for "Form Number". Please find the error message below:

Untitled.jpg  

This formula is on the "Items" part of the gallery.

 

Please advise if there is a way to word the formula differently

 

 

Thanks,

 

 

4 REPLIES 4
Super User
Super User

Re: Getting error messages when adding formula to Search in Gallery using Sharepoint ID

 

 

 

Try something like this:

 

Filter(
  Search(
    FormsTest, IDInputText.Text, "ID"
  ) ,
  Radio1.Selected.Value = "Form Number"
)

 

starship12
Level: Powered On

Re: Getting error messages when adding formula to Search in Gallery using Sharepoint ID

I have now added the code and am getting the same message:

 

Untitled.jpg

 

I am using the internal counter field that comes with SharePoint. Could that be why?

 

ChrisR
Level 8

Re: Getting error messages when adding formula to Search in Gallery using Sharepoint ID

The ID column is not text.

 

If you HAD to use the ID column try something like this:

 

Search(AddColumns(FormsTest,"txtID",Text(ID)),TextInput1.Text,"txtID")

 

 

Hope it helps,

Chris

starship12
Level: Powered On

Re: Getting error messages when adding formula to Search in Gallery using Sharepoint ID

Changing my code to this has solved the issue now:

 

Radio1_1.Selected.Value = "Form Number", Filter(FormsTest, ID=IDInputText_1.Text)

 

Thank you all for your help