You can use an
equation question to store the value of the URL parameter.
For purposes of this example:
- The question codes for the last questions are q_5a, q_5b, q_5c, q_5d
- Those questions are select-radio type
1) Create an equation question on the last page with question code "urlParam" and the following equation:
if(count(q_5a.NAOK) > 0, '5a', if(count(q_5b.NAOK) > 0, '5b', if(count(q_5c.NAOK) > 0, '5c', if(count(q_5d.NAOK) > 0, '5d', 'defaultValue') )))
(here it is with line-breaks and indents to make it easier to read)
if(count(q_5a.NAOK) > 0,
'5a',
if(count(q_5b.NAOK) > 0,
'5b',
if(count(q_5c.NAOK) > 0,
'5c',
if(count(q_5d.NAOK) > 0,
'5d',
'defaultValue'
)
)
)
)
2) Use this as the end URL:
limesurvey.com/endpage?endurl={urlParam}
Here is a sample survey: