Playground and DEMO space
This is a playground and demo space for ConfiForms and ConfiDoc addons developed and supported by Vertuna LLC
Most pages provide a storage format for the demo, so you can use the free add-on from Atlassian Confluence Source Editor (or through the bundled in ConfiForms storage editor) to import this configuration into your Confluence and see it in action
To import examples from the storage format on Confluence Cloud please see this page
Please note, all the examples here are provided without any obligation and may or may not be incomplete or may have bugs, and we provide NO SUPPORT for these examples and demos.
This works ONLY for authenticated users! So, please take the storage format provided and import it into your Confluence to see how it works
Buttons are hidden after the user has voted
Alternatives are good
Source code / storage format
<ac:structured-macro ac:macro-id="94eff54b-a645-4d0a-be00-45dd256e4cf6" ac:name="confiform" ac:schema-version="1"> <ac:parameter ac:name="formName">f1</ac:parameter> <ac:rich-text-body> <ac:structured-macro ac:macro-id="8d838e2e-3472-4350-912b-6e732c9cbbd2" ac:name="confiform-entry-register" ac:schema-version="1"> <ac:parameter ac:name="formName">f</ac:parameter> <ac:parameter ac:name="restrictions">sash</ac:parameter> <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter> <ac:rich-text-body> <p> <br/> </p> </ac:rich-text-body> </ac:structured-macro> <p> <ac:structured-macro ac:macro-id="c1244178-90a1-49b5-9f49-6ef100423e8f" ac:name="confiform-field-definition" ac:schema-version="1"> <ac:parameter ac:name="fieldName">t</ac:parameter> <ac:parameter ac:name="fieldLabel">t</ac:parameter> <ac:parameter ac:name="type">text</ac:parameter> </ac:structured-macro> </p> <p> <ac:structured-macro ac:macro-id="19bad807-5f84-461a-904f-5073953648c4" ac:name="confiform-field-definition" ac:schema-version="1"> <ac:parameter ac:name="fieldName">c</ac:parameter> <ac:parameter ac:name="fieldLabel">c</ac:parameter> <ac:parameter ac:name="type">numberhidden</ac:parameter> </ac:structured-macro> </p> <p> <ac:structured-macro ac:macro-id="1930ef71-68fa-4c9a-a9d0-2212b33c457e" ac:name="confiform-field-definition" ac:schema-version="1"> <ac:parameter ac:name="fieldName">vt</ac:parameter> <ac:parameter ac:name="fieldLabel">vt</ac:parameter> <ac:parameter ac:name="type">hidden</ac:parameter> </ac:structured-macro> </p> <p> <ac:structured-macro ac:macro-id="5c850963-9868-4e45-a3e0-eec729075365" ac:name="confiform-field-definition" ac:schema-version="1"> <ac:parameter ac:name="fieldName">up</ac:parameter> <ac:parameter ac:name="fieldLabel">upvote</ac:parameter> <ac:parameter ac:name="extras">vt=true</ac:parameter> <ac:parameter ac:name="type">action_button</ac:parameter> <ac:parameter ac:name="separator">Upvoted</ac:parameter> </ac:structured-macro> </p> <p> <ac:structured-macro ac:macro-id="07cdb4ee-ae92-4786-95cc-97b38c499913" ac:name="confiform-field-definition" ac:schema-version="1"> <ac:parameter ac:name="fieldName">down</ac:parameter> <ac:parameter ac:name="fieldLabel">downvote</ac:parameter> <ac:parameter ac:name="extras">vt=false</ac:parameter> <ac:parameter ac:name="type">action_button</ac:parameter> <ac:parameter ac:name="separator">Downvoted</ac:parameter> </ac:structured-macro> </p> <p> <ac:structured-macro ac:macro-id="99de898d-0145-41c7-8e83-b42da15f7d89" ac:name="confiform-field-definition" ac:schema-version="1"> <ac:parameter ac:name="fieldName">voters</ac:parameter> <ac:parameter ac:name="fieldLabel">Voters list</ac:parameter> <ac:parameter ac:name="type">multiuser</ac:parameter> </ac:structured-macro> </p> <p>--- hide voters</p> <p> <ac:structured-macro ac:macro-id="39723795-4899-4460-81e2-e455d3b174a5" ac:name="confiform-field-definition-rules" ac:schema-version="1"> <ac:parameter ac:name="condition">*</ac:parameter> <ac:parameter ac:name="fieldName">voters</ac:parameter> <ac:parameter ac:name="action">Hide field</ac:parameter> </ac:structured-macro> </p> <ac:structured-macro ac:macro-id="2228c8f2-a412-4772-b98f-3eeb64679e9c" ac:name="confiform-ifttt" ac:schema-version="1"> <ac:parameter ac:name="action">Create ConfiForms Entry</ac:parameter> <ac:parameter ac:name="event">onCreated</ac:parameter> <ac:parameter ac:name="title">entryId=[entry.id]&c=0</ac:parameter> <ac:rich-text-body> <p> <br/> </p> </ac:rich-text-body> </ac:structured-macro> <ac:structured-macro ac:macro-id="5986567d-dce4-4716-b55b-33d37e484fb7" ac:name="confiform-ifttt" ac:schema-version="1"> <ac:parameter ac:name="condition">hasChanged(vt):true AND vt:true</ac:parameter> <ac:parameter ac:name="extras3">true</ac:parameter> <ac:parameter ac:name="extras4">true</ac:parameter> <ac:parameter ac:name="action">Create ConfiForms Entry</ac:parameter> <ac:parameter ac:name="event">onModified</ac:parameter> <ac:parameter ac:name="title">entryId=[entry.id]&c=(ZEROIFEMPTY("[entry.c]")+1)&vt=&voters=[entry._user],[entry.voters.asList]</ac:parameter> <ac:rich-text-body> <p> <br/> </p> </ac:rich-text-body> </ac:structured-macro> <ac:structured-macro ac:macro-id="9d2b2efe-e70b-4820-ae33-c37a33486a49" ac:name="confiform-ifttt" ac:schema-version="1"> <ac:parameter ac:name="condition">hasChanged(vt):true AND vt:false</ac:parameter> <ac:parameter ac:name="extras3">true</ac:parameter> <ac:parameter ac:name="extras4">true</ac:parameter> <ac:parameter ac:name="action">Create ConfiForms Entry</ac:parameter> <ac:parameter ac:name="event">onModified</ac:parameter> <ac:parameter ac:name="title">entryId=[entry.id]&c=(ZEROIFEMPTY("[entry.c]")-1)&vt=&voters=[entry._user],[entry.voters.asList]</ac:parameter> <ac:rich-text-body> <p> <br/> </p> </ac:rich-text-body> </ac:structured-macro> </ac:rich-text-body> </ac:structured-macro> <p> <br/> </p> <p> <br/> </p> <p> <br/> </p> <p> <br/> </p> <ac:structured-macro ac:macro-id="c7c00fec-7741-42ca-9951-7bae1c8a885a" ac:name="confiform-list" ac:schema-version="1"> <ac:parameter ac:name="formName">f</ac:parameter> <ac:rich-text-body> <h2> <ac:structured-macro ac:macro-id="689c0bb1-f0ba-47ce-83fe-67ad354277e6" ac:name="confiform-field" ac:schema-version="1"> <ac:parameter ac:name="fieldName">t</ac:parameter> </ac:structured-macro> </h2> <p> <br/> </p> <ac:structured-macro ac:macro-id="da151245-ee03-4c53-abf5-ae144a111968" ac:name="confiform-ifmatches" ac:schema-version="1"> <ac:parameter ac:name="condition">!voters:[entry._user]</ac:parameter> <ac:parameter ac:name="type">asFilter</ac:parameter> <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter> <ac:rich-text-body> <ac:structured-macro ac:macro-id="00e8fb46-4edf-40f9-b65c-8cf65f465a95" ac:name="confiform-field" ac:schema-version="1"> <ac:parameter ac:name="fieldName">up</ac:parameter> </ac:structured-macro> <ac:structured-macro ac:macro-id="2002fe00-5472-4548-936f-143c97ec465d" ac:name="confiform-field" ac:schema-version="1"> <ac:parameter ac:name="fieldName">down</ac:parameter> </ac:structured-macro> </ac:rich-text-body> </ac:structured-macro> <p> <br/> </p> <p> <br/> </p> </ac:rich-text-body> </ac:structured-macro>