<we:input type="choice">
Since version: 1.5.2 | Requires endtag: no
Description
This tag is used to create a combination of a drop down menu and a single line entry field. Selections made in the drop down menu are automatically entered into the text field. Entries made directly into the text input field are also permitted.
Attributes
type
Default value: - | since version: - | required: yes
Allowed values:
- choice
name
Default value: - | since version: - | required: yes
Set this attribute to a unique name within the webEdition document.
size
Default value: - | since version: - | required: no
Set this attribute to a value defining the width of the input field.
maxlength
Default value: - | since version: - | required: no
Set this attribute to a value defining the maximum number of characters allowed for the input field.
mode
Default value: - | since version: - | required: no
By setting the attribute to "add", the selected value from the drop-down menu will be added to the content of the input field, seperated by a blank. By setting it to "replace", the selected value will replace the content.
Allowed values:
- add
- replace
values
Default value: - | since version: - | required: no
Set the entries of the drop-down menus, separated by " | ".
reload
Default value: false | since version: 3.1.0.0 | required: no
Set this attribute to "true" to perform a reload of the web page after changing the value. Setting this attribute to "false" or not setting it, will not reload the page after the selection was made.
Allowed values:
- true
- false
seperator
Default value: | | since version: 4.0 | required: no
With the attribute seperator you can determine the seperator of the different values.
user
Default value: - | since version: - | required: no
Set this attribute to a list of comma seperated usernames. These are the users permitted to make changes. This attribute requires the User Management (Standard or PRO) Module.
htmlspecialchars
Default value: false | since version: - | required: no
Using htmlspecialchars="true" will change all special chars into HTML entities ("&" is transformed to "&"). If htmspecialchars is "false" or not set, all special chars remain unchanged.
Allowed values:
- true
- false
cachelifetime
Default value: 0 | since version: 4.2.0.0 | required: no
With this attribute you define the validity of the Cache in seconds for this we:Tag. This attribute is used only if cache type defined in the template is we:Tag Cache or Cache is disabled.
Syntax
<we:input type="choice" name="attribute" [size="attribute"] [maxlength="attribute"] [mode="add|replace"] [values="attribute"] [reload="true|false"] [seperator="attribute"] [user="attribute"] [htmlspecialchars="true|false"] [cachelifetime="attribute"] />