It sounds like you need to use a OR search. You want to find .... ie car color field.... Red OR Blue OR White. thus multiple values of color in the color field. To do an OR search, you must create a New Search for each Value... before you perform the FIND.
If your list of specified criteria is in a global field, your script can
enter find mode
loop through the list of values using set field to put each criterion in a different find request. (Use new record/Request to create additional requests).
Perform the find
I would have to turn it into a global field which shouldn't be hard. But since everything has to be already written in the script, won't the creating additional requests not be in the script? The user would have to create the additional requests, no? And how exactly do I "loop through the list of values using set field to put each criterion in a different find request?
Can I do it with a repeating field?
There are two separate parts to your question.
1) How to do multiple finds on a single field? Answer: Search your records with mulitple OR type searches.
2) How to input the User selected search criteria in the field and do an OR search?
Answer: Many ways.... really depending on the the number of different "criteria"
1) User picks just a few criteria... Phil's List approach is fast and easy.
2) User can randomly pick a criteria like possible colors of a car and unlimited amount of colors.... Then you may have to create a Table for each search possiblitly and loop through thoser records.
Or if.... I hope you get my point... to design your search , decide on the needs of your search and then design the script.
Yes, the script would create the additional requests within the loop that loops through the selected values.
Or the script can perform Enter find mode, specify criteria with set field, extend found set within the loop to find your records. The results should be the same either way as long as your first extend found set starts from an empty found set or your perform a find the first time around.