This topic is locked
[SOLVED]

 How to change the Default "Please Select" option

8/25/2010 7:48:02 AM
PHPRunner General questions
G
gavin1211 author

I am tearing my hair out trying to change the default value text of "Please Select" to the text "All" on my drop downs in my advanced search panel. Does anyone know how to do this?

A
ann 8/25/2010

Gavin,
you can change it in the generated \output\include\commonfunctions.php file.

Find the code:

if($LCType!=LCT_CBLIST)

{

echo '<select size = "'.$lookupSize.'" id="'.$cfield.'" '.(($mode == MODE_INLINE_EDIT || $mode==MODE_INLINE_ADD) && $is508==true ? 'alt="'.$strLabel.'" ' : '').'name="'.$cfield.$postfix.'"'.$multiple.'>';

if($lookupSize<2)

echo '<option value="">'."Please select".'</option>';

else if($mode==MODE_SEARCH)

echo '<option value=""> </option>';

}



and change the phrase.

G
gavin1211 author 8/25/2010

It worked, thanks a million for the help.
Gavin