Child pages
  • Using ConfiForms ListView with Confluence Content by Label macro

Versions Compared

Key

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

...

ConfiForms Form Definition
formNamef

mylabelMy labeltextsashINLINE

 

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

ConfiForms ListView
formNamef
  • mylabel

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.

ConfiForms ListView
formNamef

label = "[entry.mylabel]"

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

...