Child pages
  • Configuration snippets

Versions Compared

Key

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

Various forms configurations

  1. Simple form with 3 fields: text, textarea and user field

...

  1. Image Added
    Configuration in the editor
    Image Added
    Storage format for you to import

    Expand
    Code Block
    <ac:structured-macro ac:macro-id="27a53aa2-bc57-43c5-b6df-566cbada8e7a" ac:name="confiform" ac:schema-version="1">
      <ac:parameter ac:name="formName">simpleForm</ac:parameter>
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">mytextfield</ac:parameter>
            <ac:parameter ac:name="fieldLabel">My Text Field</ac:parameter>
            <ac:parameter ac:name="type">text</ac:parameter>
          </ac:structured-macro>
        </p>
        <p>
          <ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">textAreaField</ac:parameter>
            <ac:parameter ac:name="fieldLabel">My textarea field</ac:parameter>
            <ac:parameter ac:name="type">textarea</ac:parameter>
          </ac:structured-macro>
        </p>
        <p>
          <ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">theUser</ac:parameter>
            <ac:parameter ac:name="fieldLabel">User</ac:parameter>
            <ac:parameter ac:name="type">user</ac:parameter>
          </ac:structured-macro>
          <ac:structured-macro 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>
    
    
  2. Using ConfiForms TableView macro to show the content of previous form

    On the page

    Image Added

    In the editor
    Image Added

    Storage format

    Expand
    Code Block
    <ac:structured-macro ac:name="confiform-table" ac:schema-version="1">
      <ac:parameter ac:name="formName">simpleForm</ac:parameter>
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:name="confiform-field" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">theUser</ac:parameter>
          </ac:structured-macro>
        </p>
        <p>
          <ac:structured-macro ac:name="confiform-field" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">mytextfield</ac:parameter>
          </ac:structured-macro>
        </p>
        <p>
          <ac:structured-macro ac:name="confiform-field" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">textAreaField</ac:parameter>
          </ac:structured-macro>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
  3. Showing the same form using ConfiForms ListView
    On the page
    Image Added
    In the editor

    Image Added
    Storage format

    Expand
    Code Block
    <ac:structured-macro ac:name="confiform-list" ac:schema-version="1">
      <ac:parameter ac:name="formName">simpleForm</ac:parameter>
      <ac:rich-text-body>
        <h2> <ac:structured-macro ac:name="confiform-field" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">theUser</ac:parameter>
          </ac:structured-macro>
        </h2>
        <table>
          <tbody>
            <tr>
              <td>
                <p>Value for text field (just adding some text before the value):</p>
                <p>
                  <ac:structured-macro ac:name="confiform-field" ac:schema-version="1">
                    <ac:parameter ac:name="fieldName">mytextfield</ac:parameter>
                  </ac:structured-macro>
                </p>
                <p> </p>
              </td>
              <td>
                <p>
                  <ac:structured-macro ac:name="confiform-field" ac:schema-version="1">
                    <ac:parameter ac:name="fieldName">textAreaField</ac:parameter>
                  </ac:structured-macro>
                </p>
                <p> </p>
              </td>
            </tr>
          </tbody>
        </table>
      </ac:rich-text-body>
    </ac:structured-macro>
    Info

    Take a look at Tutorials to get examples of more complex configurations, as ConfiForms is very versatile in functionality and supports many use-cases and scenarios