You can use default value in a dropdown list with Java script. It is also possible to change first word in that.
- Set ID on the property of the dropdown list
- Add two 'HTML Item'd after the dropdown list
- Edit first HTML Item as follows
<script type="text/javascript"> function go(){ var combo1 = document.getElementsByName("_oLstChoicesC0")[0]; combo1(0).text="All Customer"; combo1(1).text="------------------------------"; combo1.selectedIndex="0"; } </script>_oLstChoices means a dropdown list. C0 is ID which is set in the property. Change the number combo1.selectedIndex="0" to the default index. You can change the first word if you change the strings in combo1(0).text.
- Edit second HTML Item as follows
<img src="http://www.blogger.com/pat/images/blank.gif" onload="go()" />This is to execute Java script on that report. Then this is the result.
No comments:
Post a Comment