Explore the community Forums Lectora Lectora Questions & Answers Trigger Lectora event from JavaScript Reply To: Trigger Lectora event from JavaScript

#398461 Score: 0
Profile photo of Zachary Liquorman
Zachary Liquorman
Member
beginner
intermediate
friend finder
profile
curious george
wise owl
contributor
picture perfect
8 pts
@zliquorman1276

you could trigger Lectora actions via Javascript directly

Got a code snippet for that?

I’m not sure I understand the question. Tim’s snippet above, runGroup_og1234(), is the JS that triggers the actions in Lectora.

Unless you were referring to something like having JS set a Lectora variable like AICC_Lesson_Status directly instead of using an action group. Which, you could do, but it would result in the error you saw before where Lectora won’t publish the file because it’s not seeing the AICC_Lesson_Status variable being modified by an action/assessment score.