possible?: force unique answer

More
3 years 1 month ago #122877 by Questler
Questler created the topic: possible?: force unique answer
Hello I am wondering if it is possible that I can force my users to give unique answers like their email.

I have a survey and in the end I ask for their telefone number. I want LS to give an error if the number already exists.
Is it possible without big hacking and coding?

Thanks

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #122878 by gabrieljenik
gabrieljenik replied the topic: possible?: force unique answer
I guess that you need some JQuery for external validation.

Cheers,
Gabriel - www.Encuesta.Biz - Authorized Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?)....[img]

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #122881 by tpartner
tpartner replied the topic: possible?: force unique answer
To expand on Gabriel's reply - there is no method within LimeSurvey to check previous submissions. You will need to make an AJAX call to a remote PHP script that queries the database for previous responses.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Questler

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #122923 by Questler
Questler replied the topic: possible?: force unique answer
That sounds complicated :unsure: But thanks for the answer.

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #122944 by LouisGac
LouisGac replied the topic: possible?: force unique answer
also have a look to the token system, maybe it could solve your problem in a different way than forcing unique answer.
manual.limesurvey.org/Tokens

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!