Enable/disable Buttons
After some user feedback, we have created two functions that allow you to enable or disable buttons based on user input. Disabling a button stops the onClick event script from executing.
<script>
enabled = {}
function disable(buttonName)
enabled[buttonName] = false
buttonName.Style.BackgroundColor = color.gainsboro
end
function enable(buttonName)
enabled[buttonName] = true
buttonName.Style.BackgroundColor = color.fireBrick
end
</script>
For a quick example of using the above enable and disable functions, take a look at the Buttons page on the Knowledge Base.
Please sign in to leave a comment.
Comments
0 comments