Adding an auto counter in common events

  • Published by Viedoc System 2021-03-29
  • Print

To add an auto counter in your form:

1 Add a single line text item
2

On the functions (f) tab of the item settings pop-up, enter the code below:

return StudyEventRepeatKey;

Note! StudyEventRepeatKeyis a string, so it requires the item type to be a single line text item.

For more details about functions and how to use JavaScript in Viedoc see lesson Using JavaScript in Viedoc.