Page tree

Versions Compared

Key

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

In this tutorial you will learn how to create a simple form and show the data stored in the form in different ways.

  • as WYSIWYG list
  • as simple HTML table
  • as table with inline search
  • as Calendar

We will create 5 page in Confluence, each page will accommodate one of the ways to show the data and another page will be to store the form configuration

Excerpt Include
Creating a simple form
Creating a simple form
nopaneltrue

ConfiForms is very flexible at how it can show the data your store. Define form once and show it multiple ways (via ConfiForms Registration Control) and show the data stored with this form on any page, any data subset and in the way and layout you want, with sorting and styling you need.

Let's start with the form. We will define a form with 3 fields: text, textarea and date

We will also have a default "ConfiForms Registration Control" macro which will enable default way of registering records with dialog form.

 

 

Expand
Code Block
<ac:structured-macro ac:macro-id="4c4be3cf-91c4-4de1-a0b0-ff9f567739cd" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">f</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="cb785dd3-2e33-4626-9759-dc3c5dfbd5a7" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">t</ac:parameter>
        <ac:parameter ac:name="fieldLabel">My Text</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="59117dc0-60e6-43f8-be55-828ea7664a0c" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">ta</ac:parameter>
        <ac:parameter ac:name="fieldLabel">My textarea</ac:parameter>
        <ac:parameter ac:name="type">textarea</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="c695ea1a-d03c-4e2a-ac80-85982ca97172" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">d</ac:parameter>
        <ac:parameter ac:name="fieldLabel">My date</ac:parameter>
        <ac:parameter ac:name="type">date</ac:parameter>
      </ac:structured-macro>
      <ac:structured-macro ac:macro-id="f24efa14-a7c6-4738-bf8c-721d5bb75923" 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>