- Posts: 10
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
11 years 4 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
11 years 4 months ago - 11 years 4 months ago #89930
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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:
With this placeholder tag that now includes all required JavaScript:
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 4 months ago by tpartner.
The topic has been locked.
- amoswagon
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
11 years 4 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!!!
Thank you so much!!!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
11 years 4 months ago #89933
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
8 years 8 months ago #123979
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on 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.
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.