Features

Static Variables

3y agoPending

Be able to define variables, in the scope of a form, instead of within the scope of 1 submition.

The value and its changes are persistent between different form submitions of different users.

add formula's to change the value of the variable when a form is submitted.

Usecase example:

This would allow to make forms where options have limited availability ( for example, submitters are attendee's of a conference day, and have a multple choice between different breakoutsessions. every breakoutsession has limited availability. The Form could decrement a Static number Variable when someone selects to attend a session, and disable that option when the value is 0.

and 16 others

2 comments

  1. For the use case here (breakout sessions or options that close once X people pick them), two ways to do it today:

    1. Native Tally only: put a short first form where people pick the session, use conditional logic + Redirect on completion to send each choice to its own small form, and turn on Settings → "Limit number of submissions" on each of those. Each one closes by itself when full. Downside: several forms to maintain, and nobody sees how many places are left.

    2. Via the API: listen for the FORM_RESPONSE webhook, keep a count per option, and when an option hits its cap, PATCH the form with that option's block set to hidden. A periodic recount from the submissions API reopens spots when responses are deleted.

    Disclosure: I built a small tool that does option 2 for you, ChoiceKeeper (choicekeeper.pratikpoddar.in), free for one form. It's a soft limit, since Tally can't reject a submission, so two people submitting in the same second can both take the last spot.

  2. My use case : need logic for options (dropdown/select) to be disabled or hidden once "used" X (variable) number of times. Used being the selection of it in a successful form completion/submission.

    I've had this need years ago too and previously "got around" it by having someone manually hide the option chosen as quickly as possible after each form submission but this is not scalable and causes issues as forms are submitted in different timezones before we can hide/remove the option.