Explore the community Forums Lectora Lectora Questions & Answers Set button disabled with JavaScript? Reply To: Set button disabled with JavaScript?

#383696 Score: 0
Profile photo of Math Notermans
Math Notermans
friend finder
junior moderator
LUC16 Attendee
wise owl
curious george
129 pts

Quick thoughts… you can offcourse add some ActionGroup in Lectora and call that one with Javascript… so  say you have a group in Lectora called og156489 with in it whatever actions…eg. to disable some buttons. So you can call that group from the external Javascript using:  runGroup_og156489();//runs a group/actiongroup in Lectora that shows the newQuestion group..

Ofcourse this is not exactly what you want… you want to directly set some button.

Checked some of my Javascripts, and although i found solutions… from completely creating buttons from images to using an element to block buttons ( so you cannot click it ) but not anything directly disabling a button.
Gonna do some tests to find out if its possible.