Oakley Posted November 6, 2023 Report Share Posted November 6, 2023 Is there a way that once a dropdown value has been selected, and then it is changed the form resets, or at least a couple fields reset? Quote Link to comment Share on other sites More sharing options...
0 Aether Posted November 7, 2023 Report Share Posted November 7, 2023 Hi @Oakley, You can try using this kind of JS code, where it will reset the other fields once the value on the dropdown is selected: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { //Field for the dropdown var x = document.querySelector('[name*=InsertRecordTitle]'); //All the other fields that needs to be reset x.onchange = function() { document.querySelector('input[name="InsertRecordName"]').value = ""; document.querySelector('input[name="InsertRecordEmail"]').value = ""; document.querySelector('input[name="InsertRecordDATE"]').value = ""; document.querySelector('input[name="InsertRecordDescription"]').value = ""; } }); </script> Refer screenshot below: You may test it out here: https://c1abv183.caspio.com/dp/48276000abef0cdd18cc4d178a92 Quote Link to comment Share on other sites More sharing options...
0 Aether Posted November 7, 2023 Report Share Posted November 7, 2023 You may also refer to this similar forum post: Quote Link to comment Share on other sites More sharing options...
0 Oakley Posted November 7, 2023 Author Report Share Posted November 7, 2023 thanks so much! worked perfectly Quote Link to comment Share on other sites More sharing options...
Question
Oakley
Is there a way that once a dropdown value has been selected, and then it is changed the form resets, or at least a couple fields reset?
Link to comment
Share on other sites
3 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.