Holly Cochran Posted October 17, 2014 Report Share Posted October 17, 2014 I would like my Advanced Search form to open with the 2 checkboxes "Show death/burial information" and "Show spouse " already checked by default. I can see that their variables, $showdeath & $showspouse, are initialized in searchform.php like this:$showdeath = $_SESSION['tng_search_showdeath'];$showspouse = $_SESSION['tng_search_showspouse'];Positive values are apparently "yes". I tried to initialize the session variables by putting this in my custom_config.php file:$_SESSION['tng_search_showdeath'] = "yes";$_SESSION['tng_search_showspouse'] = "yes";I also tried setting the value to TRUE. None of this caused the form to open with the boxes checked.Does anybody know where these session variables are initially set? And is custom_config consulted for their values? I hate to change TNG core code due to the maintenance hassle, but I will if it's the only way to make this work. I have many people on my site with the same name, so the search results can be pretty useless without the spouse and death info to identify who's who.thanks,Holly Quote Link to comment Share on other sites More sharing options...
Jay Wilpolt Posted October 17, 2014 Report Share Posted October 17, 2014 Holly, I think you want to change the TNG source code in the searchform.php file at or near line 85 & 86 document.search.showdeath.checked = false; document.search.showspouse.checked = false;Hope that helpsJay Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.