Elena Posted August 31, 2015 Report Share Posted August 31, 2015 Hello there, Is it possible to add a "Reset" or a "Clear All" button in the "Configuration Search Field" area of a tabular report? I would like to show "Reset or a Clear All" button on my Search Page that has multple search criteria. I have investigated and searched high and low to see if there is such a button within the Caspio Styles. So far, I have not been successful in finding it. Can anyone please recommend either a SQL statement or a Javascript? Better still does Caspio give this ability to edit or create this function anyway? Thank you so very much in advance. Elena Quote Link to comment Share on other sites More sharing options...
0 Elena Posted August 31, 2015 Author Report Share Posted August 31, 2015 Just to be clear, below is my script that doesn't seem to like to work with Search Forms. <button onclick="this.form.reset()" style="color:blue;cursor:pointer">Clear All</button> Please help. Quote Link to comment Share on other sites More sharing options...
0 codell Posted August 31, 2015 Report Share Posted August 31, 2015 Elena, Is this what you are looking for? http://howto.caspio.com/tech-tips-and-articles/common-customizations/how-to-add-a-reset-button-to-clear-a-form/ For example: http://b6.caspio.com/dp.asp?AppKey=85b33000a5818c495ed349b9b7c9 Cooper Elena and telepet 2 Quote Link to comment Share on other sites More sharing options...
0 Elena Posted September 1, 2015 Author Report Share Posted September 1, 2015 Hi Cooper, Yes that is exactly what I need. Thank you for your help. The code worked very well for my purpose. E Quote Link to comment Share on other sites More sharing options...
0 MargaretBroo Posted September 8, 2015 Report Share Posted September 8, 2015 The reset() method is used to reset the values of all elements in a form ,it is same as clicking the reset button. The reset () method is supported in all major browsers. The syntax for that is formObject.reset() Quote Link to comment Share on other sites More sharing options...
0 cheonsa Posted February 20, 2019 Report Share Posted February 20, 2019 Hi @Elena, I found a similar post like yours. You may want to check their solutions here: -kristina Quote Link to comment Share on other sites More sharing options...
0 ParkLoey Posted June 26, 2021 Report Share Posted June 26, 2021 Hey there everyone. I have also stumbled upon this other workaround that worked on my end. This one reloads the search to clear the search fields. Hopefully this gives you another idea on how you can clear the fields: Quote Link to comment Share on other sites More sharing options...
Question
Elena
Hello there,
Is it possible to add a "Reset" or a "Clear All" button in the "Configuration Search Field" area of a tabular report?
I would like to show "Reset or a Clear All" button on my Search Page that has multple search criteria.
I have investigated and searched high and low to see if there is such a button within the Caspio Styles.
So far, I have not been successful in finding it.
Can anyone please recommend either a SQL statement or a Javascript?
Better still does Caspio give this ability to edit or create this function anyway?
Thank you so very much in advance.
Elena
Link to comment
Share on other sites
6 answers to this question
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.
Note: Your post will require moderator approval before it will be visible.