Page tree

Versions Compared

Key

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

...

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"

ConfiForms Form Definition
formNamef

mylabelMy labeltext

sashINLINE 


ConfiForms TableView
formNamef

mylabel

...


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

...

ConfiForms ListView
formNamef

label = "[entry.mylabel]"

What is in the editor

Image Added

Some storage format details

Warning

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

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

 

...