Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a page from a template with [entry.field] referneces

Chris Iacovelli
Contributor
October 20, 2022

I have a page which uses a confiform form data entry to create a new page from a predefined template using the data entered in the form. Easy peasy, this works without issue, page created and it is located in the proper hierarchy within Confluence.

Wrinkle comes when I enter [entry.field name] references in the template. When the template is used to create the page, the current confiform data (not the field references) is used to create the templated page, e.g., 

from template:

from template.png

after page created:

after create.png

 

I am trying to find a way to forego the substitution as the page is created from the template (if that even is an option).

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
October 20, 2022

Look at asEntryRef function https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions

Or create pages from the template using [rawtemplate.<template_name>] instruction (expects the contents to be in a Confluence template)

https://wiki.vertuna.com/display/CONFIFORMS/Using+Confluence+templates+from+ConfiForms+with+dynamic+names

Alex

Chris Iacovelli
Contributor
October 20, 2022

@Alex Medved _ConfiForms_ - you're my hero.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events