realized Posted December 7, 2008 Report Share Posted December 7, 2008 I want a user to have one search box , but have that one search box search 3-4 fields.. If i tell my datapage to have the ability to search 4 fields, it ads 4 text boxes to the search screen. can i consolidate it into one box, and the user will search 1 term, and it will take that term and display all matches within all the fields i set? Quote Link to comment Share on other sites More sharing options...
0 bahar_vm Posted December 10, 2008 Report Share Posted December 10, 2008 Hi, A Java script is needed for this purpose. Basically you will have 4 text boxes (search fields) but three of them will be hidden, the Logical Operator between these 4 fields should be OR, and the Java Script gets the value of the first text field and assign it to all other three fields, this way the search will query all four fields with the same value entered in the first field by user. To get an idea how Java Scripts work in Caspio DataPages please take a look at viewforum.php?f=14 You can also have Caspio Professional Service department to write the script for you. Best, Bahar M. Quote Link to comment Share on other sites More sharing options...
0 cheonsa Posted January 30, 2019 Report Share Posted January 30, 2019 Hi @realized, You may want to see this document to do a keyword search across multiple fields: https://howto.caspio.com/faq/reports-datapages/how-to-do-keyword-search-across-multiple-fields/ Hope this helps. Regards, kristina Quote Link to comment Share on other sites More sharing options...
0 NailDyanC Posted November 20, 2020 Report Share Posted November 20, 2020 Hello, just to add in the previous comment above. As I understand, you want to create a search field which can search to the 4 fields, right? If that is the case, on your table, add another field and set it to Formula. Then, concatenate the fields you want to use in your report. If all your field are in Text datatype , you can use [@field:FieldName1] + ' ' + [@field:FieldName2] + ' ' + [@field:FieldName3] + ' ' + [@field:FieldName4] on your Formula Field. Then, use this formula field as your search criteria, it should look like the attached screenshot. I hope that helps. Quote Link to comment Share on other sites More sharing options...
Question
realized
I want a user to have one search box , but have that one search box search 3-4 fields..
If i tell my datapage to have the ability to search 4 fields, it ads 4 text boxes to the search screen.
can i consolidate it into one box, and the user will search 1 term, and it will take that term and display all matches within all the fields i set?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.