Page tree

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

Compare with Current View Page History

« Previous Version 6 Next »

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

To import examples from the storage format on Confluence Cloud please see this page

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.

As the title says, we create a form with custom ConfiForms Field Definition rule which will validate the data time interval given and allow only the ones which start on Friday

-

The storage format for the demo

<ac:structured-macro ac:macro-id="88fcffc1-5dce-4a92-9e8f-b0620bd66251" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">myform1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="8fac65a5-8f68-4e2f-b0d4-f5d9f2397a08" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="embedded">true</ac:parameter>
      <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="1677cc4b-6420-407d-bdb3-366a9f82316e" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">mydtinterval</ac:parameter>
        <ac:parameter ac:name="fieldLabel">The interval</ac:parameter>
        <ac:parameter ac:name="values">60</ac:parameter>
        <ac:parameter ac:name="type">datetimeinterval</ac:parameter>
        <ac:parameter ac:name="required">true</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="11f8f2db-e325-4d4d-b0ab-78243e4d7d9a" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">!mydtinterval.startDate.formatDate(E):Fri</ac:parameter>
        <ac:parameter ac:name="fieldName">Interval can start only on Friday!</ac:parameter>
        <ac:parameter ac:name="action">Validation rule</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
  • No labels