Page tree
Skip to end of metadata
Go to start of metadata

This is the documentation for ConfiForms Server/Data Center app


ConfiForms ListView is a very powerful macro which allows you to present the data stored within a ConfiForms the way you want, with custom layout and design.

But it also allows you to use any other Confluence macro inside it's body and mis the contents of a ConfiForms Form with anything you like (and not only design and styling).

Here is how you can show the content by Label with ConfiForms ListView, where Content by label macro get's a label property to filter on dynamically from ConfiForms


Live DEMO


We have a form with just one field of type text and that is called "mylabel"

My label

confiforms

 

There is only ONE record stored with this form at the moment and that is:

  • confiforms

Then we can use the ListView macro to be a container for Content by label macro and give the value of our "myfield" to this macro as an input.

We have to use Confluence Storage format editor to inject the reference to "myfield", as it down to allow us to add any arbitrary value in the UI of the macro

<ac:structured-macro ac:macro-id="1b53ecf3-505e-4920-969f-5908b09436f4" ac:name="confiform-list" ac:schema-version="1">
  <ac:parameter ac:name="formName">f</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="e170ca90-0257-4c88-b953-da2a1318d7c6" ac:name="contentbylabel" ac:schema-version="2">
        <ac:parameter ac:name="cql">label = "[entry.mylabel]"</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>

See the CQL parameter: we have added a reference to "mylabel" field value

 

 

  • No labels