Page tree
Skip to end of metadata
Go to start of metadata

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 to import this configuration into your Confluence and see it in action

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.


Storage format for Designing a quiz with ConfiForms

<p>We have 2 forms, one form with quiz questions and answers and another form that uses the data from form 1 and allows users to write their own answers, to answer the quiz</p>
<ac:structured-macro ac:macro-id="e903a0fd-2c50-433a-957f-ad0fb5bc2273" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">quiz</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="bcb096cc-9915-43dc-8bf2-971137b4783b" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="fff537de-b2cc-48f8-aeaa-79adbab16c85" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">question</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Question</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="1069bb0b-695e-493a-a98b-faf7a76b0034" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">answer</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Answer</ac:parameter>
        <ac:parameter ac:name="restrictions">confluence-administrators</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<p>Answer field is set to be restricted (view) only to users from confluence-administrators security group</p>
<ac:structured-macro ac:macro-id="66354855-faac-446d-9634-bf6ca5361e2a" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">answers</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="e1b4cfcb-c357-46f3-9d27-df27ba2b8dbe" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="restrictions">sash</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="595a757d-eb26-4d81-bf01-e0106735f603" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="editRestrictions">confluence-administrators</ac:parameter>
        <ac:parameter ac:name="fieldName">quiz</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Quiz question</ac:parameter>
        <ac:parameter ac:name="values">[19104464|quiz|question|true||]</ac:parameter>
        <ac:parameter ac:name="type">smartselect</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="e70b18d2-b819-4fa7-8400-b228481d55af" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">myanswer</ac:parameter>
        <ac:parameter ac:name="fieldLabel">My answer</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<p>Quiz for user:</p>
<ac:structured-macro ac:macro-id="ccd93c9b-cc2e-482f-928e-876eb5282bb9" ac:name="confiform-card" ac:schema-version="1">
  <ac:parameter ac:name="formName">answers</ac:parameter>
  <ac:parameter ac:name="enableGridEdit">true</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="18e9e0cb-b121-428b-9015-aa776655b6e7" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">quiz</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="d4e1b85a-e46e-4987-87a9-a836b3303c08" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">myanswer</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<p>
  <br/>
</p>
<p>This is the UI visible by quiz admin (with answers) Correct answer is taken from "quiz" form using smart field reference (quiz.answer)</p>
<ac:structured-macro ac:macro-id="e4b4aac3-c1e8-4185-bd77-1c58cee0bbc4" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="formName">answers</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="9670a578-1c50-40dd-84ce-bbb4447c82b2" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">quiz</ac:parameter>
      </ac:structured-macro>
      <ac:structured-macro ac:macro-id="7f6561a6-f4ed-49f2-8704-5bb75e6d10fc" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">myanswer</ac:parameter>
      </ac:structured-macro>
      <ac:structured-macro ac:macro-id="bee1bedd-35dc-4c9f-8bde-8c437c6d6371" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="overrideLabel">Correct answer</ac:parameter>
        <ac:parameter ac:name="fieldName">quiz.answer</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>


  • No labels