TOPIC: Add a counter question

I'd like to keep track of a counter in a multi-use token survey form. What I want to do is have a question field (or text on the page) that auto-fills with the current iteration number of the survey... e.g. the first submitted multi-use token would get 1, the next 2, and so on.

Any way to implement this?

The administrator has disabled public write access.

JavaScript is currently disabled.Please enable it for a better experience of Jumi.

How common is the need to use or analyze result data during a survey? One option for LimeSurvey 1.92 would be to create variable attributes that provide easy access to those data, similar to how Expression Manager provides access to variable attributes within a single survey.

I'd like to keep track of a counter in a multi-use token survey form. What I want to do is have a question field (or text on the page) that auto-fills with the current iteration number of the survey... e.g. the first submitted multi-use token would get 1, the next 2, and so on.

Any way to implement this?

If your survey can be filed out 10 times you can make use of the {USESLEFT} placeholder at your template, see bugs.limesurvey.org/view.php?id=5291
You can put that value into a hidden DIV element and then use Javascript to read out the current value and then do some math like
10 - <myvalue> = $currentiteration

You can then try to write the value of $currentiteration into the text field of question by using some Javascript.

I will... right now I'm being lazy and just using a bolierplate (text) question to display some verbiage like "Including this, there are {TOKEN:USESLEFT} uses left". As you pointed out, using javascript (or Jquery since I'm learning that now) we could do a lot more. I'll eventually go that way and share with the forum once I do. Thanks again, for all the hard work on LimeSurvey and your help/support!