• Confluence is currently running with all non-system plugins disabled, some functionality may be missing

Page tree

Versions Compared

Key

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

Obviously, there is a way (and very easy way) to use Smart Templates with our flagship add-on ConfiForms

ConfiForms is good at gathering data form your users in a structured way. But it can be used with many other use cases, such as providing the data stored within a form to a Smart Template.

This tutorial, Using embedded template with variables, shows how to use variables with template and how to set the values. It has the example of using the ConfiForms ValueView macro to do that as well, but there is another way also.

ConfiForms has a macro called CleanView (simplified brother of the ListView), which could render the contents of the form the way you define. We will  use it in the example below and get the values from the for using this macro and 

Code Block
[entry.field_name]

notation. See ConfiForms add-on documentation and Accessing field values and properties for a reference if you are not familiar with ConfiForms add-on

 

The form configuration is simple:

Just 2 fields

  • field1
  • field2

Will store a record with the following values

Then we will define a simple template:

And here is the result:

 

Values stored in ConfiForms are passed to Smart Templates add-on using the Confluence page properties macro