Page tree

Versions Compared

Key

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

In this tutorial you will learn how to use Confluence templates with ConfiForms

Warning

There is a bit simpler tutorial about the concept of using Confluence templates within ConfiForms, Advanced integrations with IFTTT macros with ConfiForms

...

Please be aware that the contents of the template will be evaluated against the values in the record used to create a page using this template, but you can include it without evaluating the paramteres parameters from ConfiForms version 1.47.2

Info

Status
colourGreen
titleFrom version 1.47.2

You can include the template without evaluating it's parameters.

Code Block
[rawtemplate.TEMPLATE NAME AS YOU SEE IT in TEMPLATES FORM]

The contents of the template "TEMPLATE NAME AS YOU SEE IT in TEMPLATES FORM" will be included as-is, sometimes this is very handful, especially when you create pages with other ConfiForms Forms and have included instructions to use [entry.field_name] or IFTTT results


The logic to find the right template is as follows:

  1. Look by the template name in the current space
  2. If not found then look by the name in the global templates


Info

Status
colourGreen
titleFrom version 2.25.4

You can also set the space key explicitly

Code Block
[template.SPACEKEY::TEMPLATE_NAME]

Same goes for raw template referencing

Code Block
[rawtemplate.SPACEKEY::TEMPLATE_NAME]

This way ConfiForms will attempt to look into the given space to find the template and if not found then the default discovery logic will be used (see above)


For example, a template is named: "My first template"

...

Let's start with form configuration (if you a new to ConfiForms please have a look first at Creating a simple form in Confluence with ConfiForms tutorial). It will be a ConfiForms form with 3 fields:

...

The content of this template is the following:

Info

FROM VERSION 1.47.2

You can include the template without evaluating it's parameters.

[rawtemplate.mytemplate]

The contents of the template "mytemplate" will not be evaluated against the current record, but will be included as-is



This gives us the unified view of the form in the page created, email sent and when user fillins the form

...