user
@santiagoaguilar
Problems connecting 2 google sheets.
I connected to google sheets to one storyline, but when i change the clabsSheetsWidgetID to the second sheet the storyline keeps writing the information in the first one. How can i fix that? Basically i need to obtain the information of the first google sheet and then write new information in the second one.
reply
Reply
user
@support
Hello. Sorry for giving you wrong information in the previous thread. Use this trigger in Storyline to switch to a different sheet (make sure to replace the ID in quotes with your widget ID):

window.clabsSheetsWidgetID = 'MTA4M3w0MDE5fDQxNT';
let player = GetPlayer();
player.SetVar('stencilsheetstoken','');

I tested this with the starter file and it worked.
reply
Reply
user
@santiagoaguilar
So, i need to activate in the master slide both of the javascript codes and change de Id whenever i want with that code?
reply
Reply
user
@support
No, you need only one initiation trigger on the Master. And to switch to a different sheet, you need to execute the JavaScript trigger provided in the previous message.
reply
Reply
user
@santiagoaguilar
Thanks, that worked for me too!
reply
Reply
user
@support
Great, don't hesitate to reach out if any other questions come up.
reply
Reply