I am using phprunner 6.0.
I follow the instruction from this topic http://www.asprunner.com/forums/topic/14684-advanced-search-restriction/
I add this script to before display in search page. The page is generated from custom view.
$xt->assign("searchbutton_attrs", "onclick=\"javascript: if (!document.getElementById('value_FieldName_1').value) {alert('FieldName is required'); return false;} searchController1.submitSearch();\"");
I find the error showed that searchController1 is undefined after I press the search button.