Can i call a button state by Javascript ?

mnotermans5114
mnotermans5114 Community Member Posts: 916
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

Comments

  • timk
    timk Community Member Posts: 1,195 ♦ Idol ♦
    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
  • mnotermans5114
    mnotermans5114 Community Member Posts: 916
    Thx Tim...