Info |
---|
Excerpt |
---|
Very simple tutorial to demonstrate how voting control can be used. Please be aware that "voting control" field works only for authenticated users (logged-in Confluence users!) |
|
We have a simple form with 2 fields:
- choice1 - to hold a text for users to vote on (field type: text)
- votes - to count votes (field type: voting)
See storage format for the configuration
Warning |
---|
The demo will work only for logged-in users!!!! |
...
ConfiForms Form Definition |
---|
|
choice1Choice 1text votesVote!Vote for me!Remove my votevoting confluence-administratorsINLINE
|
Storage format for the form
Code Block |
---|
<ac:structured-macro ac:macro-id="61430c46-979f-486a-98f7-33666ecc779e" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">voting</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="8ddfe4e8-085f-485a-a31e-8580a0106e5f" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">choice1</ac:parameter>
<ac:parameter ac:name="fieldLabel">Choice 1</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="516d13d9-3b30-4ba3-967c-902b7c5169f9" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">votes</ac:parameter>
<ac:parameter ac:name="fieldLabel">Vote!</ac:parameter>
<ac:parameter ac:name="values">Vote for me!</ac:parameter>
<ac:parameter ac:name="extras">Remove my vote</ac:parameter>
<ac:parameter ac:name="type">voting</ac:parameter>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="7fb066a8-6d3a-4165-b6c6-32860fb77573" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:rich-text-body>
<p> </p>
</ac:rich-text-body>
</ac:structured-macro>
</p>
</ac:rich-text-body> |
...