OK thanks Bob - I stand corrected...
You know all of this way way better than I
I am just happy it is working! The only thing missing, is that the freeform textbox, and the 3 selects are connected in OR sequence, so it returns results for any of the 4 search criteria matching a result - what would be supper nice, would be to have an option to make it work in AND sequence as well...
So currently, if you search in the freeform for "Chickens" and then in the 1st select menu for "Red", "Green" in the 2nd and "Purple" in the 3rd - you get members which contain any of the matches for Chickens, Red, Green or Purple - so each member might just match Red for example.
Could I do it so that, the results MUST match ALL the set criteria,
So if you search in the freeform for "Chickens" and then in the 1st select menu for "Red", "Green" in the 2nd and "Purple" in the 3rd - you get members which contain matches for Chickens, Red, Green and Purple - so far fewer members returned in the results as a more strict criteria is set.
Any ideas?
The code I am using for the OR function is:
&where=`[
{"modUserProfile.extended:LIKE":"%\"[[!Get_value01]]\"%"},
{"OR:modUserProfile.extended:LIKE":"%\"workregion\":\"[[!Get_Region]]\"%"},
{"OR:modUserProfile.extended:LIKE":"%\"schoolingphase\":\"[[!Get_SchoolingAge]\"%"},
{"OR:modUserProfile.extended:LIKE":"%\"subjectsoffered\":\"[[!Get_SubjectsTaught]]\"%"}
]`
With the snippet getting the value searched from the URL string following a <form> GET
[ed. note: dubbs last edited this post 8 years, 6 months ago.]