Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Can I do quota management on Tokens fields?

Can I do quota management on Tokens fields? 2 years 8 months ago #89920

  • amoswagon
  • amoswagon's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
Yes. Upgraded to: Version 2.00+ Build 121208

Still doesn't work.
The administrator has disabled public write access.

Can I do quota management on Tokens fields? 2 years 8 months ago #89922

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5088
  • Thank you received: 1046
  • Karma: 438
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Can I do quota management on Tokens fields? 2 years 8 months ago #89928

  • amoswagon
  • amoswagon's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
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 administrator has disabled public write access.

Can I do quota management on Tokens fields? 2 years 8 months ago #89930

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5088
  • Thank you received: 1046
  • Karma: 438
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 2 years 8 months ago by tpartner.
The administrator has disabled public write access.

Can I do quota management on Tokens fields? 2 years 8 months ago #89931

  • amoswagon
  • amoswagon's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
How could I ever find that!?

Thank you so much!!!
The administrator has disabled public write access.

Can I do quota management on Tokens fields? 2 years 8 months ago #89933

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5088
  • Thank you received: 1046
  • Karma: 438
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Can I do quota management on Tokens fields? 1 week 2 days ago #123979

  • jelo
  • jelo's Avatar
  • Online
  • Platinum Donor
  • Posts: 867
  • Thank you received: 93
  • Karma: 29
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 administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.150 seconds