πPassing variables to URL
This code tutorial will let you know how to pass arguments direct to the URL.
Last updated
Was this helpful?
This code tutorial will let you know how to pass arguments direct to the URL.
Last updated
Was this helpful?
One of the common case of use is, for example, when you are trying to set a variable at the beginning of the survey.
Let's say that we need to set the variable COUNTRY to one option. You will need to copy the survey link and after that concatenate the survey question codes using the following format.
your_survey_url?q[COUNTRY]=
your survey url is getting from the Publish tab on SynoSurvey. There you will see a menu with the survey links. You need to click tje right button and copy the link and select the option copy link. It works for both, LIVE and TEST urls.
This will select the first option of a question whose id will be COUNTRY
. In addition, you will need to copy this code into the page to hide the page and go to the next question.