Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This tutorial is just a demonstration of techniques, and has many improvement points. The intention is to show the technique which can be used to help you to get the most of ConfiForms (smile)

Full storage format for the solution is here

Expand
Code Block
<ac:structured-macro ac:macro-id="410266f2-68ba-4623-a800-cc8ce9f642e2" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">lists</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="3264aa5c-1076-4f06-8d56-3b133f3cff48" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">mytext</ac:parameter>
        <ac:parameter ac:name="fieldLabel">My Text</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
      <ac:structured-macro ac:macro-id="1855b42d-ccf2-40d6-ac6a-2cd112057d3e" 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>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="ebde5948-c9d4-490a-b0d2-b4e8aee7ccca" ac:name="html" ac:schema-version="1">
  <ac:plain-text-body><![CDATA[  <div id="listsContent"></div>
  <script type="text/javascript">
    function showMessage(msg) {
       AJS.$('#listsContent').html('<span class="aui-lozenge aui-lozenge-success">'+msg+'</span>'); 
    }
  </script>]]></ac:plain-text-body>
</ac:structured-macro>
<p> </p>
<p> </p>
<ac:structured-macro ac:macro-id="246ece23-d9db-4c2b-a344-864d6d68f049" ac:name="confiform-list" ac:schema-version="1">
  <ac:parameter ac:name="formName">lists</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="1e5a17a3-d7e3-43cf-8987-8a731c68e4a7" ac:name="html" ac:schema-version="1">
      <ac:plain-text-body><![CDATA[<button class="aui-button submit" type="button" onclick="showMessage('[entry.mytext]')">Say it!</button>]]></ac:plain-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>