Vitalikssssss Posted June 8, 2020 Report Share Posted June 8, 2020 Hi @JMR21, You would need to add a line of code which would click on Search/Submit button after user clicks Clear Form, so it could pass empty string parameters to other Datapages. So, the JS snippet could look like this: <button type="button" onclick="resetForm()">Clear Form</button> <script> function resetForm() { var myForm = document.querySelector('form[action*="[@cbAppKey]"]').querySelectorAll('input:not([type=submit]):not([type=hidden]), textarea, select'); myForm.forEach(function(elem) { elem.value=""; }); var searchBtn = document.querySelector('.cbSearchButton').click(); } </script> Regards, vitalikssssss Quote Link to comment Share on other sites More sharing options...
Flowers4Algernon Posted August 31 Report Share Posted August 31 Hello! Just wanted to share this Caspio techtip that may be helpful: https://howto.caspio.com/tech-tips-and-articles/adding-a-reset-button-in-forms/ Quote Link to comment Share on other sites More sharing options...
nyunyiboy Posted September 3 Report Share Posted September 3 Hi @DLReich, I found a similar post like yours. You may want to check their solutions here: Quote Link to comment Share on other sites More sharing options...
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.