Forum Discussion

JimCarry's avatar
JimCarry
Community Member
8 months ago

How to change states of a rectangles using javaScript in Storyline 360

We are working on a sample translation output using java script. We are looking for a solution to change the rectangle state using java script (Ex: CC text from English to Spanish and so on) when user clicks on its language button.

Please advise or suggest us a solution to change the state using java script.

  • SBP_Inc's avatar
    SBP_Inc
    Community Member

    I've used a variable linked to a trigger that changes the state of shapes. While javascript can control variables, one can use triggers and variables alone, and that works in preview mode too