Check out the LimeSurvey source code on GitHub!

Can I do quota management on Tokens fields?

More
4 years 2 months ago #89920 by amoswagon
Yes. Upgraded to: Version 2.00+ Build 121208

Still doesn't work.

Please Log in to join the conversation.

More
4 years 2 months ago #89922 by tpartner
Are you getting any JavaScript errors? Can you activate a test survey for us to see?

T.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 2 months ago #89928 by amoswagon
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

Please Log in to join the conversation.

More
4 years 2 months ago - 4 years 2 months ago #89930 by tpartner
Ah, I see.

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

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

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 4 years 2 months ago by tpartner.

Please Log in to join the conversation.

More
4 years 2 months ago #89931 by amoswagon
How could I ever find that!?

Thank you so much!!!

Please Log in to join the conversation.

More
4 years 2 months ago #89933 by tpartner
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.

Please Log in to join the conversation.

More
1 year 5 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.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form