Can I do quota management on Tokens fields?

More
4 years 5 months ago #89920 by amoswagon
amoswagon replied the topic: Can I do quota management on Tokens fields?
Yes. Upgraded to: Version 2.00+ Build 121208

Still doesn't work.

Please Log in to join the conversation.

More
4 years 5 months ago #89922 by tpartner
tpartner replied the topic: Can I do quota management on Tokens fields?
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 5 months ago #89928 by amoswagon
amoswagon replied the 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

Please Log in to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #89930 by tpartner
tpartner replied the topic: Can I do quota management on Tokens fields?
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 5 months ago by tpartner.

Please Log in to join the conversation.

More
4 years 5 months ago #89931 by amoswagon
amoswagon replied the topic: Can I do quota management on Tokens fields?
How could I ever find that!?

Thank you so much!!!

Please Log in to join the conversation.

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

Please Log in to join the conversation.

More
1 year 9 months ago #123979 by jelo
jelo replied the topic: Can I do quota management on Tokens fields?
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.

Start now!

Just create your account and start using Limesurvey today.

Register now