Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the counter question type #1849

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs/form-question-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,31 @@ a manual input is prompted.

integer,ex_integer_widget,Ex integer widget,ex:change.uw.android.BREATHCOUNT,integer type with ex:change.uw.android.BREATHCOUNT appearance (can use other external apps)

.. _counter-widget:

Counter
""""""""""

type
``integer``
appearance
``counter``

The counter appearance allows users to increase a count by one with each click, making it ideal for tracking occurrences, items,
or any sequential tallies. Negative numbers are not supported, so the count starts at zero and only increments upwards.
It works exclusively with integers, and decimal values are not supported.

.. image:: /img/form-question-types/counter.*
:alt: A counter widget displayed in ODK Collect on an Android phone.
:class: device-screen-vertical

.. rubric:: XLSForm

.. csv-table:: survey
:header: type, name, label, hint, appearance

integer,counter,Counter,integer type with counter appearance,counter


.. _date-and-time-widgets:

Expand Down
Binary file added docs/img/form-question-types/counter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.