User preferences
A preference's token functions in the same way that a variable does with the only difference being that a preference is stored within the wire for later use. Preferences will be maintained as long as the wire is installed on a device.
Preferences are stored in Mobile Client and are global to every wire. Therefore, it is important to name preferences in a manner that minimizes the risk of another available wire in the system to overwrite the value unintentionally.
To create a preference, use an <assign> action tag. Preferences are defined as the property attribute of the assign. Create preferences with a format of “preferences:name” within the property attribute.
<action> <assign property="preferences:favcolor" value="Green"/> <alert message="You must LOVE the color [preferences:favcolor]"/> </action>
Loading...
There was a problem loading this topic