Home > Managing Projects, Data & The Organization, Survey Creation, Survey Logic > How To: Work with QRef’s & Short ID’s

How To: Work with QRef’s & Short ID’s


Working with QRef’s and Short ID’s is one of the most basic methods for keeping your survey organized, readable and correctly indexed.
Those methods are easy to use and will help preventing scripting errors that might be caused.

Let’s say for example that we have the following script written somewhere in our survey:
If we add\remove more questions\chapters or move questions places, that scripts index might not index any more to the right question.
Therefore QRef
method should be used.
For example:
If the script is written like that, no matter what changes will be made, the index will follow the correct question it was indexed on.
In conclusion, getting used to add QRef’s regularly is easy, quick and saves a lot of time in case of index errors.

Short ID’s
In order to index our questions in the most elegant way; we have the Short ID method.
If you go to the survey properties tab and check the ‘ShortID as Question Index’ & ‘Show Question Index’:

Then, if you go to the variables tab of a question, you can choose its ID:

After choosing it’s ID, you will notice that the short ID will appear as following:

And when the survey will run, it will appear like that:

This is an easy, quick and elegant way to organize all your questions with their index’s.

That’s it, two simple methods, but highly important.

Visit us at: http://www.dooblo.net

  1. Csarmasz, Máté
    July 10, 2012 at 5:27 am

    It seems to me that when you delete questions/enter questions, even chapters, the program changes the references correctly, even if you aren’t using qref.

    Is it something that didn’t work in the past? Is it still worth using qref? When exactly will it make a difference?

    • rontal
      July 10, 2012 at 6:41 am

      The program will reference it correctly if the index number is in the first parameter, for example in the function Answer(), but in functions like FilterAnswersByAnswers() where the index is also in the 2nd parameter and the rest, it will not fix them without QRef(). so it is better getting used to work with QRef()

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: