Multiple Conditions in Custom Script

0

I have multiple questions and i need to write below conditions for defined questions. I cannot find detailed and guide with examples for conditions from Help, Forum, Webinars or somewhere else. If you may write these conditions as it’s correct way in “Custom Script”, it will be great guide for every condition rules. No need to logical explaniations or corrections for this examples. I only need to learn this scripting language.

And if any other detailed guide file will be better beside this link. “https://script.surveygizmo.com/help/sg-functions”

Thanks for your considerations.
Regards.

 

Q1 : Multiple selection :

Id : 100 / Reporting Values : 1,2,3,4 /Reporting Options Value : 1001,1002,1003,1004

 

Q2 : Single selection :

Id : 101 / Reporting Values : 1,2,3,4 /Reporting Options Value : 2001,2002,2003,2004

 

Q3 : Drop down :

Id : 102 / Reporting Values : 5,6,7 /Reporting Options Value : 3003,3006,3009

 

Q4 : Multiple selection Grid Question :

Id : 326 / Checkbox1 : 368, Checkbox2 : 369 / Option1 : 4001, Option2 : 4002, Option3 : 4003

 

Q5 : Numeric question : 

Id : 500 / From 1 to 125

 

Q6 : Open-Ended question :

Id : 501 / restricted to 10 letters

 

Conditions : 

1 : if Q1=2 and (Q2=3 or Q3=7) then { set Q4 Checkbox1 (option1, option2) }

2 : for i = 2 to 4

     p=i+3

     if ( Q2=i) then { remove (Q1,option(i))

     if ( Q3=p) then { square root(Q5)

     next

3 : if (Q6 (containsany(‘s’.or.’p’)) then { print ‘You cannot enter these letters’ }

4 : if (Q6 (select from 1st letter to 5th letter) <>’12345′  then { print ‘You entered wrong’ ; set Q4 Option3, Option4; goto Q1;}

5 : if (maximum of report values of Q3+1000>=minimum of report values of Q4) then { some condition }

 

 

 

Caitlin Murphy362904 answered
    0

    I can definitely give you a hand writing and implementing this if you have a budget for consulting! Let me know if you’re interested.

    Caitlin Murphy362904 answered
      ×

      Login

      Question stats

      • Active
      • Views1721 times
      • Answers1 answer
      • Followers1 follower