Jump to content

Hide bulk edit update button


Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...