This topic is locked
[SOLVED]

 limit search options in advanced search page

5/23/2017 1:30:09 AM
PHPRunner General questions
Y
YCH author

For a specific field I'd like to limit the search options (Contains, between, ..) in the advanced search page (with Bootstrap theme).
I found a older topic on this forum but it does not seem to work Bootstrap theme for me.
Any ideas how to have this working?
Thanks.

Y
YCH author 5/23/2017



For a specific field I'd like to limit the search options (Contains, between, ..) in the advanced search page (with Bootstrap theme).
I found a older topic on this forum but it does not seem to work Bootstrap theme for me.
Any ideas how to have this working?
Thanks.


Now I get this working with this code put in JavaScript On Load event on the Search page:
var field = "myfield";

var filter = "Contains";

$("select[id='srchOpt'][id='" + field +"'] option[value='"+filter+"']").attr("selected", "selected");