Pre fill questions setup

Asked by Sladja

Hi,

We are testing queXS and have some difficulties in setting up pre fill questions, would appreciate if you could provide some assistance and explanations.

1. Are there any conditions which type of questions can be pre-filled – we would like to use two sample variables for pre fill (Region and Area). They are List (radio) type in Lime Survey, and are also used as part of quotas for the survey.
They are set to Mandatory and Hidden, I am not sure if that makes a difference? These are assigned answer options:
S1 - 1 Beograd, 2 Istočna Srbija, 3 Zapadna Srbija, 4 Vojvodina
S2 - 1 Urban, 2 Rural

2. Which values are we actually pre-filling in queXS in this case – Area example: codes (1,2) or values (“Urban”, “Rural”)?
No matter which one we try, they are not passed through to the results.

3. How should we label/prepare the pre-filled question in the sample .csv file?
I prepared a test case for Region with text values, and Area with numerical codes to cover both options, then matched the sample variables for pre-fills, using tags {Sample:Area), {Sample:Region}

4. I have checked the link (as you suggested in one of other topics), here is how it looks:
http://surveys.onspot-research.com/index.php/922758?lang=sr-Latn/922758/token/k8rp5vmqi798ymz/lang/en/S2/1/S1/Beograd
 From what I understand, values are passed correctly (value 1 for S2, and ‘Beograd’ for S1), or not?

However, when we finish questionnaire, those values are not recorded. I also tried to pre-fill with fixed values or codes, they were also not saved.

Please not that questionnaire is not in English language – can that cause this issue, maybe it is encoding related?

Both Region and Area are Var type=String in sample management.
I also noticed that on Operator screen String sample variables are not shown (only First/Last name and number are visible), although all variables are set to be Visible by operators.

Could you please help me understand if I am setting Region/Area variables correctly so they can be passed to the operator screen and the questionnaire?

Thanks a lot!
Sladjana

Question information

Language:
English Edit question
Status:
Solved
For:
queXS Edit question
Assignee:
No assignee Edit question
Solved by:
Sladja
Solved:
Last query:
Last reply:
Revision history for this message
Adam Zammit (adamzammit) said :
#1

Hi,

the link should look like this:

http://surveys.onspot-research.com/index.php/922758/token/k8rp5vmqi798ymz/lang/en/S2/1/S1/2

notice there is no "?" in the URL as then all values will be passed to the "lang" parameter.

What version of queXS are you using? If 2.x, please confirm what setting you have under "System Settings" -> "Questionnaire Service (RPC)" under "Questionnaire entry URL".

It should read something like:

http://surveys.onspot-research.com/index.php
NOT:
http://surveys.onspot-research.com/index.php/922758?lang=sr-Latn

Adam

Revision history for this message
Sladja (sladja) said :
#2

Thanks Adam,

I made the RPC correction and this solved the issue with pre-filling region/area values, but I am still not seeing those information on operator screen - is this related or should be moved to separate thread?

By the way, we are using queXS Alternate interface for operator screen, the last one on this page:
https://quexs.acspri.org.au/screenshots
Contact details tab is missing on the screen

Revision history for this message
Adam Zammit (adamzammit) said :
#3

You're welcome.

Can you please clarify where on the operator screen you expect to see that information? If possible, please include a screenshot.

If the contact details tab is missing , please set:

define('TAB_CONTACTDETAILS', true);

in config.inc.local.php

Adam

Revision history for this message
Sladja (sladja) said :
#4

I expect all columns from the sample file which are set to 'Visible' to appear on the screen - I assume region/area should appear in Contact details tab which is currently missing, so your answer solves this.

Thanks!