User Tools

Site Tools


button

This is an old revision of the document!


<<button>>

The «button» macro creates a button that, when clicked, sets the data entered into other form macros in the passage (<<textinput>>, <<radio>>, <<checkbox>>), and moves to another passage.

Usage

The «button» macro should be provided with a link:

<<button [[displayed text|passage name]]>>

The resulting button behaves identically to the link, but, when clicked, additionally causes the data entered into <<textinput>>, <<radio>> and <<checkbox>> macros to be placed in the variables.

For instance, if the macro «textinput $FoodName» appears in the same passage with a «button», and the text “pretzels” has been entered into the input box, then clicking the button will, in addition to changing passages, run the equivalent of «set $FoodName to “pretzels”».

button.1402875053.txt.gz · Last modified: 2017/10/09 20:37 (external edit)