Welcome to the LimeSurvey Community Forum

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

Can I do quota management on Tokens fields?

  • amoswagon
  • amoswagon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #89928 by amoswagon
Replied by amoswagon on topic Can I do quota management on Tokens fields?
Yes. I do receive Javascript errors.
Even simple javascript to hide the question don't work anymore:

<script type="text/javascript" charset="utf-8">
$("#question{QID}").hide();
</script>Are you?

{QID} and {TOKEN:ATTRIBUTE_1} by themselves work and retrieve the values correctly.

Here is a survey example we I try to hide the question using Javascript:
datachili.invokesolutions.com/index.php/...x/sid/748622/lang/en
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 3 months ago - 11 years 3 months ago #89930 by tpartner
Replied by tpartner on topic Can I do quota management on Tokens fields?
Ah, I see.

In 2.0 you need to replace this in startpage.pstpl:
Code:
<script type="text/javascript" src="{TEMPLATEURL}template.js"></script>

With this placeholder tag that now includes all required JavaScript:
Code:
{TEMPLATEJS}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 11 years 3 months ago by tpartner.
The topic has been locked.
  • amoswagon
  • amoswagon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #89931 by amoswagon
Replied by amoswagon on topic Can I do quota management on Tokens fields?
How could I ever find that!?

Thank you so much!!!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 3 months ago #89933 by tpartner
Replied by tpartner on topic Can I do quota management on Tokens fields?
Yeah, I know, tricky.

But I thought the upgrade process was supposed to do the replacement automatically.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 6 months ago #123979 by jelo
One issue when using Token-Attributes via hidden questions for Quota control.

When you have a certain amount of probands on the survey and the quota is triggered the quota check is occurring during the interview and not where the hidden question is set. That means that probands are kicked out of the survey everywhere.

The quota checks should really be implemented directly in the tool.

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

Lime-years ahead

Online-surveys for every purse and purpose