Millisecond Forums

option values and conditions

https://forums.millisecond.com/Topic21539.aspx

By Ciello - 5/9/2017

Hi all,
I am totally new to this and have a newbish little question:
Can I use option values, or even better the sum of specific option values to determine which surveypage comes next?

For demonstration:

I have radiobuttons like these:
<radiobuttons q1>
/ caption = "q1-text
"
/ options = ("Starke Ablehnung","Ablehnung", "Neutral", "Zustimmung","Starke Zustimmung")
/ optionvalues = ("5", "4","3", "2", "1")
/ responsefontstyle = ("Verdana", 10, true)
/ orientation = horizontalequal
/ position = (10%, 15%)
/ required = true
</radiobuttons>
on surveypages like these:
<surveypage P1>
/ caption = "Im folgenden möchte ich Sie nun ein wenig besser kennenlernen. Beantworten Sie bitte die folgenden Fragen möglichst spontan.

"
/ fontstyle = ("Verdana", 16)
/ questions = [1=q1; 2=q2; 3=q3; 4=q4; 5=q5]
</surveypage>
resulting in this survey:
<survey P>
/ pages = [1=P1; 2=P2; 3=P3; 4=P4; 5=P5; 6=P6]
/ itemspacing = 2%
/ showpagenumbers = false
</survey>

then I want to have something like this:
If optionvalue of (q1+q2+q3)<=6 then surveyV1D
If 6>optionvalue of (q1+q2+q3)<=11 then surveyV2D
If optionvalue of (q1+q2+q3)>11 then surveyV3D

<survey V1D>
/ pages = [1=V1]
/ itemspacing = 2%
/ showpagenumbers = false
</survey>

Soooooo any ideas? :)
By Dave - 5/10/2017

Ciello - Wednesday, May 10, 2017
Hi all,
I am totally new to this and have a newbish little question:
Can I use option values, or even better the sum of specific option values to determine which surveypage comes next?

For demonstration:

I have radiobuttons like these:
<radiobuttons q1>
/ caption = "q1-text
"
/ options = ("Starke Ablehnung","Ablehnung", "Neutral", "Zustimmung","Starke Zustimmung")
/ optionvalues = ("5", "4","3", "2", "1")
/ responsefontstyle = ("Verdana", 10, true)
/ orientation = horizontalequal
/ position = (10%, 15%)
/ required = true
</radiobuttons>
on surveypages like these:
<surveypage P1>
/ caption = "Im folgenden möchte ich Sie nun ein wenig besser kennenlernen. Beantworten Sie bitte die folgenden Fragen möglichst spontan.

"
/ fontstyle = ("Verdana", 16)
/ questions = [1=q1; 2=q2; 3=q3; 4=q4; 5=q5]
</surveypage>
resulting in this survey:
<survey P>
/ pages = [1=P1; 2=P2; 3=P3; 4=P4; 5=P5; 6=P6]
/ itemspacing = 2%
/ showpagenumbers = false
</survey>

then I want to have something like this:
If optionvalue of (q1+q2+q3)<=6 then surveyV1D
If 6>optionvalue of (q1+q2+q3)<=11 then surveyV2D
If optionvalue of (q1+q2+q3)>11 then surveyV3D

<survey V1D>
/ pages = [1=V1]
/ itemspacing = 2%
/ showpagenumbers = false
</survey>

Soooooo any ideas? :)

Yes, you can do that by /branch'ing conditionally to the applicable surveypage based on the response(s) given:

https://www.millisecond.com/forums/Topic5460.aspx#bm5461
By Ciello - 5/10/2017

Dave - Wednesday, May 10, 2017

Yes, you can do that by /branch'ing conditionally to the applicable surveypage based on the response(s) given:

https://www.millisecond.com/forums/Topic5460.aspx#bm5461
[/quote]


It works! Thank you so much! :)