Skip survey header

sgapiSetQuestionRuntimeProperty

Page One

Example Script
In the below script we set the runtime property for the question on the subsequent page based on the property selected in question 1.
%%property = sgapiGetValue(2);

if (%%property == 'Required')
{
  sgapiSetQuestionRuntimeProperty(3,'Required',true);
}
else if (%%property == 'Soft required')
{
  sgapiSetQuestionRuntimeProperty(3,'Soft-Required',true);
}
else if (%%property == 'Disabled')
{
  sgapiSetQuestionRuntimeProperty(3,'Disabled',true);
}
else if (%%property == 'Number')
{
  sgapiSetQuestionRuntimeProperty(3,'Number',"12.");
}

Page One

1. Which property would you like to test?