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
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
Alex
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should not be adding a link... you should have a [template.YOUR_TEMPLATE_TITLE] instruction in the ConfiForms IFTTT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!!!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, on server/dc version of Confluence the editor may “autolink” this… ctrl+z should be able to help if that happens
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.