Showing posts with label input forms. Show all posts
Showing posts with label input forms. Show all posts

<button_on>

Controls whether a button defined in a text input form is displayed or not.

Accepted values are YES and NO.

Default value: YES
Child of: <input>
Parent of: Nothing

Examples:

<button_on>YES</button_on>

<button_on>NO</button_on>

<input>

A text input form with an optional button.

The text input by the user is written to the variable defined in <variable_name>, which can be evaluated and used in the next node.


Example:

<input>
<text>Enter email address here</text>
<font>Arial</font>
<font_size>14</font_size>
<text_color>#000000</text_color>
<x>10</x>
<y>180</y>
<height>35</height>
<width>200</width>
<opacity>.3</opacity>
<transparent_background>YES</transparent_background>
<variable_name>user_email</variable_name>
<button_on>YES</button_on>
<button>
<text>Enter</text>
<font>Arial</font>
<font_size>12</font_size>
<text_color>0x000000</text_color>
<word_wrap>OFF</word_wrap>
<x>220</x>
<y>180</y>
<height>35</height>
<width>45</width>
<button_color>0xDDDDDD</button_color>
<bold>YES</bold>
<opacity>.5</opacity>
</button>
<next_node>send_email</next_node>
</input>

<opacity>

The opacity of an element such as a button.

The value must be between 0 (transparent) and 1 (opaque).

Child of: <button>, <button_defaults>, <dropdown>, <input>,
Parent of: Nothing

Example:

<opacity>.5</opacity>

Working example: Search for <opacity></opacity> in the file trivia_demo.xml.

<text>

The text for a button, input field or text banner.

HTML tags such as <b> (bold), <i> (italics) and underline <u> (underline) may be used within <text> tags defined within <input>, <text_banner name=""> and <title> tags but not those defined within <button> tags.

Child of: <button>, <input>, <text_banner name="">, <title>
Parent of: Nothing

Examples:

<text>Button A</text>

<text>Enter your name here!</text>

<text><b>Welcome to my interactive video!</b></text>

<text><p align="center">Hello world!</p></text>

Working example: Search for <text></text> in the file trivia_demo.xml.

<transparent_background>

When set to YES, makes an input box transparent with a slight border.

Default value: NO
Child of: <input>
Parent of: Nothing

Example:

<transparent_background>YES</transparent_background>

<variable_name>

In a text input form, the name of the variable to which the user input is written.

The variable does not have to have been previously defined.

Child of: <input>
Parent of: Nothing

Example:

<variable_name>user_email</variable_name>