Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
Hello,On the advanced search page date selection is there a way to make the default date be: "between one year ago and today's date"?We need this to work for dropdown with datepicker.Thankswengen
Hi,use Search page: Before display event on the Events tab for this purpose.Here is just a sample:
global $control_FieldName,$control1_FieldName;$control_FieldName["params"]["value"] = date("m/d/Y",strtotime("-1 year"));$control1_FieldName["params"]["value"] = date("m/d/Y");// write search options$opt = "Between";$options="";$options.="<OPTION VALUE=\"Equals\" ".(($opt=="Equals")?"selected":"").">Equals</option>";...$options.="<OPTION VALUE=\"Between\" ".(($opt=="Between")?"selected":"").">Between</option>";$searchtype = "<SELECT ID=\"SearchOption\" NAME=\"asearchopt_FieldName\" SIZE=1 onChange=\"return ShowHideControls();\">";$searchtype .= $options;$searchtype .= "</SELECT>";echo $searchtype;$xt->assign("searchtype_FieldName",$searchtype);
Jane Thanks!wengen