I want to know if there is any function in google app script form service for adding another choice to another different question when the answer of the first question is a certain choice
source.setTitle('Choose source')
source.setChoices([
source.createChoice('instagram.com'),
source.createChoice('facebook.com'),
source.createChoice('twitter.com'),
source.createChoice('facebook_instagram')])
medium.setTitle('Medium')
medium.setChoices([
medium.createChoice('CPC')])
var opcSource = source.getChoices();
var opc = opcSource[0].getValue();
if (opc === 'instagram.com'){
medium.createChoice('HELLOHELLO');