whiteflower Posted August 23 Report Share Posted August 23 Hi everyone, how do i hide the update button in a bulk edit screen?? i've been following other guides here for some datapages but I can't seem to do it in a bulk edit screen Quote Link to comment Share on other sites More sharing options...
Winskey Posted August 23 Report Share Posted August 23 Do you have any conditional statement before hiding the button? this may help Quote Link to comment Share on other sites More sharing options...
nyunyiboy Posted August 23 Report Share Posted August 23 Hello, You may check this thread. It shows a script that hides the Update button in Bulk Edit. Thank you! Quote Link to comment Share on other sites More sharing options...
chumkirebzi Posted August 23 Report Share Posted August 23 I assume that you do have a condition since it is an update. I've looked at the referenced post and came up with the following code: <script> var myvariable = document.getElementById("YOUR_FIELD_ID_HERE"); myvariable.addEventListener('keyup', function (event) { if (myvariable.value <= 50){ document.getElementsByClassName('SimpleButton ActionButton')[0].disabled = true; document.getElementsByClassName('SimpleButton ActionButton')[0].style.display = 'none'; } else { document.getElementsByClassName('SimpleButton ActionButton')[0].disabled = false; document.getElementsByClassName('SimpleButton ActionButton')[0].style.display = 'inline'; } }); </script> Depending on the condition, it displays or hides the button. You may place it in the footer and adjust it accordingly. Good luck! 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.