Welcome to the LimeSurvey Community Forum

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

Can I add a ID comfirmation in front of a survey?

  • free521521521
  • free521521521's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 weeks 1 day ago #262551 by free521521521
Please help us help you and fill where relevant:
Your LimeSurvey version: [6.5.4]
Own server or LimeSurvey hosting:self-host
Survey theme/template:fruity
==================
I want to send the link to the students' group. Invite them to take part in a survey. I want to make sure they are the student in the right rank, I have the student ID number data. So, I think I can add a cover page for this survey; the participants need to input the student's ID to pass the cover page. So I can do it with LS? I think it is best to add this blank form to the register page. The perfect interface would be to input the Email and student ID only. How can I do it?

Thanks

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 1 day ago #262556 by tpartner
Use the student IDs as tokens. If you do not append a token to the survey URL, they will be presented with a screen to enter their token before starting the survey.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • free521521521
  • free521521521's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 weeks 1 day ago - 2 weeks 1 day ago #262559 by free521521521
Replied by free521521521 on topic Can I add a ID comfirmation in front of a survey?
The problem is I do not have their email, so on the register page, the Email is for Survey sending, and the ID is for identity confirmation. I still want to sent survey by emails to them
Is that possible?
Last edit: 2 weeks 1 day ago by free521521521.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 1 day ago #262565 by Joffm
How many valid IDs?
You can add all valid IDs i a question of type "huge text" as default answer with a certain structure like
#ID001ID#ID002ID#ID003ID#ID004ID#... (I do not know the structure of your IDs.)

Then after entering the ID check with the function strpos(haystack,needle) if the entered ID is in your ID pool

And as your installation is on your own server you may consider an ajax call.
Create a database with your IDs.
Create a script to query your database which returns TRUE or FALSE

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose