800000004,"Sample Survey",0,1,384,0,-1,0,0,0,0,"UserName = ##USERNAME##",
1,"How have you been feeling since your last survey? 
(1 = Very Bad, 5 = Very Good)",1,"","exitscreen:

if $[how_feeling] = 0 then
  msgbox ""You must respond to this question to continue""
  goto [how_feeling]
endif

disable backbutton

if $[how_feeling] < 4 then
  hide [why_good] 
  $[why_good]  = null
  show [why_not_good] 
  goto [why_not_good]
else
  hide [why_not_good]
  $[why_not_good] = null
  show [why_good] 
  goto [why_good]
endif",0,"","","","0","","","","how_feeling","0","0","0","how_feeling","","","","0","16","160","99","Standard","0","1","0","156","11","Standard","0",0,0,0,0,"","","33",0,0,0,0,
2,"Why not so good?",22,"Been alone
No time alone
Working too much
Bored
Tired
Weather","",0,"","","","0","","","","why_not_good","0","0","0","why_not_good","","","","0","16","160","11","Standard","0","0","0","156","11","Standard","0",-1,0,0,0,"","","0",0,0,0,0,
3,"Why do you think you are feeling good?",22,"No reason, just feeling good
Been alone
Been with people I like
Not working too much
Been able to relax
Well rested
Weather","exitscreen:

disable backbutton

if $[how_feeling] < 4 then
  if $[why_not_good] == """" then
    msgbox ""You must respond to this question to continue""
    goto [why_not_good]
  endif
else
  if $[why_good] == """" then
    msgbox ""You must respond to this question to continue""
    goto [why_good]
  endif
endif",0,"","","","0","","","","why_good","0","0","0","why_good","","","","0","16","160","11","Standard","0","0","0","156","11","Standard","0",0,0,0,0,"","","0",0,0,0,0,
4,"Thank you!
Please wait for your next alarm to take the next survey.",19,"","enterscreen:
disable backbutton

click:
SELECT ALL ""Menu for Survey""
gotosubform ""Menu for Survey"" review
endform

validate:
SELECT ALL ""Menu for Survey""
gotosubform ""Menu for Survey"" review",0,"Click to Complete Survey","","","0","","","","ThankYouPleaseWaitForYourNextAlarmToTakeTheNextSurvey","0","0","0","","","","","0","16","160","99","Standard","0","1","0","156","11","Standard","0",-1,0,0,0,"","","22",0,0,0,0,
