Forums

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

ConfiForm Create Subpage with Data

Maximilian Herbert
Contributor
July 12, 2023

Hello together,

 

i have a question concerning the confiform macro. I will try to describe what i want to do by giving an concrete example.

 

I created a ConfiForm formular. When someone fills up the formular and clicks on save the following should happen:

It creates a subpage based on a  template (either a space or a global template) I predefined in confluence. In this template there are various variables. These should be replaced with the input of the ConfiForm formular.

For every newly filled up formular a new Confluence Page is created based on the template and the variables are replaced with the actual Info from the formular. 

 

Is this somehow possible?
Thanks in advance
Max

 

 

2 answers

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
July 12, 2023

Hi @Maximilian Herbert and welcome to this community

Yes, ConfiForms can use templates from Confluence as a templates to create the pages for you

However, you will need to adjust the templates to either use ConfiForms Field macros instead of variables or the [entry.field_name] notations for dynamically set contents

https://wiki.vertuna.com/display/CONFIFORMS/Using+ConfiForms+app+as+template+engine+to+create+pages+in+Confluence

Alex

Maximilian Herbert
Contributor
July 12, 2023

Hey @Alex Medved _ConfiForms_ ,
thanks for your quick response :)

 

So basically I would have to change my template in confluence and replace the variables [$variablexyz] with [entry.fieldxyz_name] ?

But how do I reference / call this template in the confiform makro?
I found out that I could put the space template in the IFTTT body [template.mytemplate] but somehow this is not working for me. I cant access the Template which I defined in the space.

Maximilian Herbert
Contributor
July 12, 2023

Edit: I can access it but it just puts a link to the Template in and does not create a page based on that template 

Alex Medved _ConfiForms_
Community Champion
July 12, 2023

You should not be adding a link... you should have a [template.YOUR_TEMPLATE_TITLE] instruction in the ConfiForms IFTTT

Like Maximilian Herbert likes this
Maximilian Herbert
Contributor
July 12, 2023

DANG! I found the mistake - if you put in brackets you need to watch out that it doesnt automatically convert into a link. It works now!!! Thank you so so so much!!!!!

Alex Medved _ConfiForms_
Community Champion
July 12, 2023

Yes, on server/dc version of Confluence the editor may “autolink” this… ctrl+z should be able to help if that happens 

Alex

Like Maximilian Herbert likes this
0 votes
DarkMietze
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2025

Hi Max,

I just stumbled over this old post of yours - do you happen to still have access to the ConfiForm you built back then? I'm trying to setup something like this for my work, but I couldn't exactly backwards-engineer the solution you found. Most notably, I haven't figured out yet how you would have to setup the template in order for the new page to pull the values from the confiform where you just entered your data points.

Also, which macro did you use to create a page from template?

Alex Medved _ConfiForms_
Community Champion
April 17, 2025

Hi @DarkMietze 

Just put the ConfiForms Field macros into the (Confluence) template and you should be good

Then in ConfiForms, in the IFTTT configuration that is set to create a page you can reference that templates via ()in macro body

[template.Your template name]

where "Your template name" is the title of your template

Alex

DarkMietze
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 23, 2025

Hey Alex,

 

thank you for your reply =) I had found the solution you suggested myself by digging through google search results, and managed to get it working!

Best wishes

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events