Lanka Lanka docs

Button set

Adds not one button but a whole set of them, letting the person pick a value from a variable: products, doctors, dates, services. There are as many buttons as the variable holds values.

The "Button set" step in the editor

When to use it

When the options are not known in advance and live in a variable — filled by a script or earlier steps.

How to set it up

  1. Add a button and pick "Button set".
  2. From list — the variable holding the list of captions.
  3. Per row — how many buttons go in one row.
  4. Save to — the variable the picked option goes to.
  5. Under the button, add the step that follows the pick.

After a tap the variable holds the caption of the picked button, and the one ending in _index holds its position in the list (from zero). For example, doctor and doctor_index.