Child pages
  • Configuration snippets

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

This is the documentation for ConfiForms Server/Data Center app

However, this might also work for ConfiForms cloud and in most cases it does. But please see this page to understand the differences between server and cloud versions of the ConfiForms app.

Various forms configurations

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

    Configuration in the editor

    Storage format for you to import

    <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

    In the editor

    Storage format

    <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

    In the editor


    Storage format

    <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>



  • No labels