Welcome to the LimeSurvey Community Forum

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

Can I set the UsesLeft to 0, when starting or finishing a QuestionGroup?

  • Funkturm
  • Funkturm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 1 week ago #266484 by Funkturm
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition   Version 6.6.1+240806 
Own server or LimeSurvey hosting: own Server
Survey theme/template: Fruity TwentyTwentythree
==================
(Write here your question/remark)

Hey guys, 

I despair of the ExpressionManager. Is it possible to set the number of remaining uses of an access code to 0 when a question group is opened or closed? Setting it at the end of the survey is unfortunately too late for my purposes. A participant should only be able to see the questions once. Currently, the survey can be started with the access code until the submit button is clicked on the last page.

Thanks a lot! Florian

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago #266485 by tpartner
You cannot set participant properties via ExpressionScript.

A possible solution may be to make an AJAX call to a script that uses the API set_participant_properties() method to adjust the uses left.

Here is an old post that may be useful - forums.limesurvey.org/forum/can-i-do-thi...-add-response#162815

- www.limesurvey.org/manual/RemoteControl_2_API
- api.limesurvey.org/classes/remotecontrol...rticipant_properties

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: Funkturm

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago #266488 by Joffm
Hi,
you obviously have a closed token based survey.
Now I do not see your problem.
With the correct setting of "Enable token-based response persistence"
[url] www.limesurvey.org/manual/Participant_settings/en [/url]
the respondent returns to the page where he left the survey and does not start at the beginning.
And with a hidden "back button" everything is fine, IMHO.

With your idea you exclude respondents who have to interrupt the survey because the bell is ringing, the baby is crying, the daily soap starts, etc.

Joffm

P.S.
Maybe I misunderstood, but there may always be a language gap. (Hättest Du auf Deutsch geschrieben, ...)

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

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose