Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

confirm participant id number twice

  • Surveyteam7
  • Surveyteam7's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 3 months ago #162025 by Surveyteam7
confirm participant id number twice was created by Surveyteam7
Hello;

we are planning to run a survey and we need to make a double check the interviewer for writing the correct id number for the participant.

at the beginning of the survey we ask the interviewer to write the ID no. in the following page this questions appears one more time how can we set a condition to be sure that those 2 numbers written are the same.

Can anyone help?

Thanks.
The topic has been locked.
  • elissa
  • elissa's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 2 months ago #162073 by elissa
Replied by elissa on topic confirm participant id number twice
Hi,
I would do it this way. Assuming that there are two questions asking for the ID number (ID1 and ID2) I would create third question (Text display type) on the next page that will be shown only when the two IDs do not match. To achieve it you could use relevance euqation in the thrid question, e.g. ID11!=ID2. I assume that an interterviwer can go back to correct the answers in ID1 and/or ID2.

Regards

Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The following user(s) said Thank You: Surveyteam7
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 2 months ago - 6 years 2 months ago #162078 by tpartner
Replied by tpartner on topic confirm participant id number twice
Or, you could use an equation similar to Elzbieta's in the Question validation field of the second question.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 2 months ago by tpartner.
The following user(s) said Thank You: Surveyteam7
The topic has been locked.
  • Surveyteam7
  • Surveyteam7's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago #162109 by Surveyteam7
Replied by Surveyteam7 on topic confirm participant id number twice
Hi Tony,

We tried several versions however couldn't do it right.
As you know we basicly want to be sure that the number is exactly correct. here is attached lss file coud you please be so kind to show us what to write as a condition. because we tried ID1!=ID2 and it didn't work.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 2 months ago - 6 years 2 months ago #162112 by tpartner
Replied by tpartner on topic confirm participant id number twice
Two problems...

You placed the equation in the "Validation" field, it should be in the "Question validation equation" field - manual.limesurvey.org/Question_type_-_Nu...28em_validation_q.29 .

Your equation says "does not equal". It should be:
Code:
ID1 == ID2

More info on Expression Manager operators here - manual.limesurvey.org/Expression_Manager#Syntax

Sample survey attached:

File Attachment:

File Name: limesurvey...2658.lss
File Size:13 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 2 months ago by tpartner.
The topic has been locked.
  • Surveyteam7
  • Surveyteam7's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago #162120 by Surveyteam7
Replied by Surveyteam7 on topic confirm participant id number twice
Thank you so much.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose