All or any required fields

  • Thread starter All or any required fields
  • Start date
A

All or any required fields

Guest
I want the form to search for any required conditions by default rather than seeking all required conditions how do I do that?

Thank you very much
 
B

Ben Thorp

Guest
There is a dropdown at the top that lets you choose between the 2
 
R

Rhadamanthys

Guest
I know but I want the one for any required conditions to be the default one, rahtner than the one with all required contiions
 
B

Ben Thorp

Guest
Ah, sorry. More haste, less speed :(

If you go into the relevant PHP page, and then look for the list of options - if you're not used to PHP, then I suggest you do a search for the list item. I haven't looked at it yet (on the wrong machine :( ) but with a bit of luck it will simply be an HTML form that is outputted, in which case you just change the correct option to <option selected>Any of the required fields</option>

 
B

Ben Thorp

Guest
Heh - it's even easier than I thought ;o)

In the ../include/config.php file, there is a set of lines like this:

// allow the choice "and/or" directly in the form during the search (0/1)
$select_operator_feature = 1;

// default operator (or/and), if the previous is set to 0
$default_operator = "and";

Simply change the default operator to "or"
 
Top