Slider widget with text as begin and end label

:light_bulb: New Configuration for range

We plan to add configurability to the range question type to make it easier for users to evaluate and select values along a range. Requests for this functionality first came up in this thread and here, and have resurfaced recently.

Configurable options we’re exploring

Specify start and end labels

Allow form designers to specify left and right labels, with full support for translation. For example, you may have “Low” / “High” or “Extremely dissatisfied” / “Very satisfied.”

Configurable ticks

Optionally display ticks or dots along the slider at a smaller interval than the selectable steps. For example, on a 0–100 range, you could set tick intervals at 20 even if the step is 5.

Suggested value

A suggested value (or placeholder) can appear initially to give users a starting point. This would be for display only and no value would be saved to the question until the user interacts with the question in contrast with a default which immediately is saved as the answer to the question.


XLSForm

The goal is to augment the existing range question type.

  • For a row with type = range and non-empty tick-labelset, the value of tick-labelset MUST match exactly one list_name on the choices sheet.

  • The name values for that list_name: MUST be numeric strings that are multiples of step or odk:tick-interval between start and end, inclusive.

The display default value would be set by a parameter display-default and the tick interval by parameter tick-interval.


:thought_balloon: Let us know what you think

  • Do you have questions that require start and end labels?

  • What work arounds are people using today to create something close to this solution?

  • If you are doing something similar, what scenarios are you designing for?

1 Like