Auto check provided response

More
2 months 3 weeks ago #208907 by Wojtek
Hi,

I have survey with tokens (100 participants). Each of them has 50 devices with unique number. They have to provide number of the device (one per one survey) and do the survey for each 50 devices. I want to help them to block using the same unique number twice. How can I do it in the system? How to check if provided 6 digits number already exists in answer and was provided by specific token?

Please Log in to join the conversation.

LimeSurvey Partners
More
2 months 3 weeks ago #208923 by holch
Replied by holch on topic Auto check provided response
What?

Sorry, don't get what you are trying to do.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

More
2 months 3 weeks ago #208927 by jelo
Replied by jelo on topic Auto check provided response

Wojtek wrote: How to check if provided 6 digits number already exists in answer and was provided by specific token?

You cannot access the answers of other respondents during an interview.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

More
2 months 3 weeks ago #208931 by DenisChenu
Except if you use 4.X version : see manual.limesurvey.org/StatFunctions plugin

For example : {statCountIf(self.sgqa,self.NAOK) == 1}

remind : statCountIf and statCount work only on a second page : no javascript control.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
2 months 3 weeks ago #208936 by Wojtek
Replied by Wojtek on topic Auto check provided response
Thank you. Does this function work for all responses or can be narrowed to responses for particular token user? What do you mean by "work only on a second page"? How to understand sentence from instruction "when move in survey"?

Please Log in to join the conversation.

More
2 months 3 weeks ago #208938 by DenisChenu
All response on self

Then you can create a equation question with (if you question code was Q01)
{TOKEN}{Q01.NAOK}
With code EqCheck

And use for validation : {statCountIf(EqCheck.sgqa,EqCheck.NAOK) == 0}


Then : user are allowed to enter 123 on Q01.NAOK only one time (need 0 : count submitted answer by default)



For next page / diffrent page: the function is done only when user click on move next/ move previous/ save etc …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

More
2 months 3 weeks ago #208947 by Wojtek
Replied by Wojtek on topic Auto check provided response
DenisChenu. Great. Thank you.

Please Log in to join the conversation.

More
2 months 3 weeks ago #208961 by DenisChenu
You use 4.X ?

If yes : please tell us if it work : its really a new feature, we have a test on it but need some idea ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
2 months 3 weeks ago #208971 by Wojtek
Replied by Wojtek on topic Auto check provided response
Actually I use older version but have to download 4.x:-). Also I have an issue how to automatically upload dropdown lists based on tokens. I have survey 1 which can be answered 50 times by each token. For example each token provides 50 different car plates numbers. In survey 2 I need dropdown lists containing 50 different car plates numbers specific for each token. It's easy to do it manually but how to do it automatically? Is it possible to use one question for all tokens and in this question has query which assigns proper car plates to token?

Please Log in to join the conversation.

More
2 months 3 weeks ago #208974 by DenisChenu
No, no , no …

Big warning : if you can : don't use 4X in production …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now