Watts-Lab / deliberation-empirica

Empirica V2 framework
MIT License
5 stars 0 forks source link

disable the proceed button but make it visible so that people know that they will be able to proceed after a time. #767

Open JamesPHoughton opened 3 months ago

JamesPHoughton commented 3 months ago

We can currently hide the proceed button until we want people to continue. We could also disable it instead, either with a complete condition set, or with a simple disable/enable time.

Current:

          - type: submitButton
            buttonText: Submit
            displayTime: 120
            conditions:
              - promptName: individualSelection
                sourceType: prompt
                comparator: exists
                value: ""

Option 1:

          - type: submitButton
            buttonText: Submit
            enableTime: 120

Option 2:

          - type: submitButton
            buttonText: Submit
            enabledConditions:
              - promptName: individualSelection
                sourceType: prompt
                comparator: exists
                value: ""

Option 3:

just put in a "disabled" property, and then replace the button with an enabled one later

          - type: submitButton
            buttonText: Submit
            enabled: False
            conditions:
              - promptName: individualSelection
                sourceType: prompt
                comparator: doesNotExist
                value: ""

        - type: submitButton
              buttonText: Submit
              enabled: True
              conditions:
                - promptName: individualSelection
                  sourceType: prompt
                  comparator: exists
                  value: ""

Leaning towards the former.

An alternative is just to have an additional display prompt that just says "Please spend at least n seconds, etc." in place of the disabled submit. (or in addition?)