Set variables on entry and completion

Entry – empty field, sets value to “New”
if(!f(“surveylinkentry”).toBoolean())
{
  f(“surveylinkentry”).set(“New“);
}
End of section 1, sets value to “Pre”
f(“surveylinkentry”).set(“Pre“);
At the end sets value to “Comp”
f(“surveylinkentry”).set(“Comp“);
These can be used with a condition to move users around a survey on retry.