Welcome to the LimeSurvey Community Forum

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

How can i restrict an participant to submit an survey?

  • soubhikbasu
  • soubhikbasu's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago #177597 by soubhikbasu
Hello,

How can i restrict an participant to submit an survey? but participant can see the survey page in spite of error after one

successful token based submission.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #177611 by DenisChenu
Didn't understand …

Else : put
Code:
0 == 1
in any (shown and relevant) Sub-question validation equation disable submitting any survey

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 topic has been locked.
  • soubhikbasu
  • soubhikbasu's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago #177613 by soubhikbasu
Let me clear the problem.....

Let:
1.Participant 1 submit a survey with a token

2. Now: When Participant 1 again visit same survey URL showing an error page, showing already submitted and etc.

3. Required: When Participant 1 again visit same survey URL showing froms and content only, but not able to

submit it again.

How can i do this?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #177656 by DenisChenu
Something like this
Code:
{% set usesleft = processString('{TOKEN:USESLEFT}') %}

replace
Code:
{% if aNavigator.aMovePrev.show %}
by
Code:
{% if (aNavigator.aMovePrev.show and usesleft) %}
and
Code:
{% if aNavigator.aMoveNext.show %}
by
Code:
{% if (aNavigator.aMoveNext.show and usesleft) %}
in your extended template
github.com/LimeSurvey/LimeSurvey/blob/ma...n/navigator.twig#L23

And set your survey to allow edit response after submit


This is an idea, untested solution.

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: f_funke
The topic has been locked.
  • soubhikbasu
  • soubhikbasu's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago #177712 by soubhikbasu
Thank you denis, its working perfectly as expected. Thanks for your valuable suggestion.

Need one more thing, is it possible to enable print as pdf icon in anywhere in the form?
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #177731 by DenisChenu

soubhikbasu wrote: Need one more thing, is it possible to enable print as pdf icon in anywhere in the form?

I don't think it can be done after survey is submitted …

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 topic has been locked.
  • soubhikbasu
  • soubhikbasu's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago #177734 by soubhikbasu
No, its required before submitting the survey.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose