<we:votingField>
Since version: 3.4.0.0 | Requires endtag: no | Required modules: voting
Description
The we:votingField-tag is required to display the content of a voting. The attribute "name" defines what to show. The attribute "type", how to display it. Valid name-type combinations are: question - text; answer - text,radio,select; result - count, percent, total; id - answer, select, radio, voting;
Attributes
name
Default value: - | since version: - | required: yes
Allowed values:
- question
- answer
- result
- id
- date
type
Default value: - | since version: - | required: no
Allowed values:
- text
- radio
- checkbox
- select
- count
- percent
- total
- answer
- voting
xml
Default value: - | since version: - | required: no
Allowed values:
- true
- false
format
Default value: - | since version: - | required: no
num_format
Default value: - | since version: - | required: no
Allowed values:
- german
- french
- english
- swiss
precision
Default value: - | since version: - | required: no
The attribute "precision" determines how many decimal places are displayed in the result of the voting when using type="percent".
Syntax
<we:votingField name="question|answer|result|id|date" [type="text|radio|checkbox|select|count|percent|total|answer|voting"] [xml="true|false"] [format="attribute"] [num_format="german|french|english|swiss"] [precision="attribute"] />