Many a times we come across a requirement to provide the users with a button on the Dashboard which will clear the values selected in Prompt. We can do this by a bit a scripting, lets see how we can achive this.
To achive this first we need to create a button and then call a function on that button click which clears the values selected in the prompt.
- Edit the dashboard page on which we have to place this button.
- Then pull the Text box from the Dashboards Objects to the desired Section as shown below.
- Then copy the below mentioned script in that text box and preview.
In the above script the minibuttonOn creates a button and the onclick is an event which clears the default selection on the click of this button. Also, dont forget to remove the ” ” from the above code.
Now, save this page and clear the default selections on button press…