Forums

RadioButtons and Eventswitcher / Redirect to different pages?

contour 09 Apr, 2019
Hi there
I want to build an easy survey
6 Questions, all Answers with RadioButtons, every Answer has a different Value (1 or 2 or 3 ...)
I want to count all Values and then depending on the summary redirect to different pages

I tried to solve this with
EventSwitcher, but I dont know the right syntax, to get the value of the Answers

You can see it here
http://kunden.contour.de/c-boxx/administrator/index.php?option=com_chronoforms6&cont=manager&chronoform=test&event=load

Who can help me, is this the right way or have I to solve it with php?

Tank you very much
contour 09 Apr, 2019
Looks like this
============================
Question1
o Answer 1 =1
o Answer 2=0
oAnswer 3=5

Question2
o Answer 1 =2
o Answer 2=0
oAnswer 3=1

and so on.
============================
if the sum of the answers = 0 then redirect to #URL
if the sum of the answers = 1 then redirect to #URL
and so on
=====================================
Is it possible to add the values from the radiobuttons in
EventSwitcher or in If Conditions
what Syntax:

data.sum:f1,f2,f3,f4,f5,f6
data.sum:field_radios1,field_radios2,field_radios3,field_radios4,field_radios5,field_radios6

I spent a hole day and have no Idea
healyhatman 09 Apr, 2019
Answer
Call the fields for example

question[0]
question[1]

etc etc

Then use {data.sum:question}
contour 10 Apr, 2019
Thank you very much, this was a perfect solution for my problem.
SOLVED!
This topic is locked and no more replies can be posted.