Can i call a button state by Javascript ?

Hi,

In Lectora Inspire 16 i want to set the state of a button to disabled with Javascript.

I know there are actions available to set the state to disabled or enabled. I can add an actiongroup, add the disable action to it, and run that actiongroup from Javascript... but i would like to directly set the button state to disabled. Anyone knows a way to do that ?

Kind regards and thx in advance,

Math

Discussion (2)

The "Set State" to "Disable" action in javascript is:

button123.setDisabled(true);

setDisabled(false) will enable.

Of course you have to update the buttons' html name.

Tim

Discussions have been disabled for this post