thead Posted June 28, 2022 Report Share Posted June 28, 2022 Hello, Is it possible to disable BulkEdit 'Update' button when it is already clicked? Quote Link to comment Share on other sites More sharing options...
0 April Posted June 28, 2022 Report Share Posted June 28, 2022 Hi Thead, Yes it is possible. You can use the following JavaScript code that will be inserted into the Footer of 'Configure Results Page Fields', which will, after first click on 'Update' button, disable it, and change its value to 'Processing': <script> document.addEventListener('DataPageReady', function (event) { const target = document.querySelector('body'); const observer = new MutationObserver(mutations => { const updateBtn = document.querySelector('input[value="Update"]'); if(updateBtn){ updateBtn.addEventListener('click',function(){ disable(this); }); } }); const config = {subtree:true, childList:true}; observer.observe(target, config); function disable(btn){ btn.disabled = true; btn.value = 'Processing'; btn.removeEventListener('click',disable); } }); </script> Hope this helps. Quote Link to comment Share on other sites More sharing options...
Question
thead
Hello,
Is it possible to disable BulkEdit 'Update' button when it is already clicked?
Link to comment
Share on other sites
1 answer 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.