Skip survey header

sgapiSetTitle

Page One

The below script is located on the subsequent page and will set the title of the follow-up question.

Example Script

%%sourceID = 2; //The question that was answered
%%targetID = 6; //The question that we will change
%%language = sgapiURlValue("slanguage");

if (sgapiGetValue(%%sourceID) == "Dogs")
{
%%value = "Where do you shop for you dog?";
}
if (sgapiGetValue(%%sourceID) == "Cats")
{
%%value = "Where do you shop for you cat?";
}

sgapiSetTitle(%%targetID,%%value);

Page One

1. What kind of pets do you have? *This question is required.