How do I create a confluence page with the details filled in ConfiForm?
Asked by Kushagra Sahu:

I created a confiform and want to save the details entered in the form by a user as a child page of the same confiform.

I'm able to create the child page once the form is submitted but the new child page that is getting created only has the title like I specified it to be and the rest of the page is blank.

Want to know what needs to be done to get all the details entered in the form in the child page.

Any help is much appreciated.


Answers:
author: Alex Medved _ConfiForms_
body: Hi

What do you have as a template for the page you create from ConfiForms?

What contents it has / template?

Some examples/tutorials from ConfiForms wiki, <https://wiki.vertuna.com/display/FORMS/How+to+create+pages+in+Confluence+with+ConfiForms>

Alex

comments: author: Kushagra Sahu
body: Hi Alex,

I have not used a templet per say but have added the fields for the confiform individually.

The tutorial you shared is working but it's only giving the Field Value and not the Field Label.

Is it possible to have display the field label along with the field value in a tabular form in the created child page?


author: Alex Medved _ConfiForms_
body: You can put WHATEVER you want inside the template/macro body - label, static text, other macros

Everything will be used as a contents to create a page

Consider also using CardView/TableView macros... with filter to apply on dataset set to

```
id:[entry.id]
```

(to filter current record)

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

Alex


author: Kushagra Sahu
body: Thanks for the above information.

Another question, I created a space template with the field labels same as what I have in the confiform, how do I reference the field details entered in the confiform to the template and populate the same in the child page?

Thanks!


author: Alex Medved _ConfiForms_
body: Sorry, not sure I understand this comment.

Any visuals you can provide?


author: Kushagra Sahu
body: Can't really share a visual, will try to explain again.

* Created a confiform
* Created a space template like demonstrated in [this](https://confluence.atlassian.com/doc/create-a-template-296093779.html) link
  * 'Host Name' is a field which has a variable 'team name'
  * Want to know how can set the variable to be the input the user enters in the form created instead of 'team name'

Basically, the field labels will be from the template created and the values that will be shown against each field will be the input entered by the user in the confiform.

Hope this makes sense.

Thanks!


author: Alex Medved _ConfiForms_
body: Are you asking on how to CHANGE the template **variables** in your Confluence template from ConfiForms?


author: Kushagra Sahu
body: Not really, I'll figure something out for it.

Another question:

* I have created 2 confiforms and want a few fields to be pre-filled in the 2nd form based on the details filled in the 1st form
* Since both the forms will need be to filled multiple times, I want the pre-filled fields in the 2nd form to filled with the latest record of the 1st form
* I'm able to pre-fill the fields in the 2nd form from but the input that is showing up is not of the latest record of the 1st form even when I specified
  * 'CreateDate DESC LIMIT 1' in Sorting and Limits section of the Rules for Field Definition Macro where 'CreateDate' is the field name of the field based on which I want to sort the records of the 1st form and get the latest records details pre-filled in the 2nd form

Thanks!


author: Kushagra Sahu
body: Hi [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) , any ideas on the above?


author: Alex Medved _ConfiForms_
body: Honestly, I dont quite understand this -\> what exactly is the question and what are you trying to do.

If you are trying to build a form that looks up some values from the other or the same form then have a look at the following example

<https://wiki.vertuna.com/display/TEST/form+to+lookup+and+preset+values+from+existing+records+with+radio+buttons>


author: Kushagra Sahu
body: I'm trying to build a form that looks up some values from the other form only.

* I was able to create the form and look up value
* Now I want to choose which record the values should be looked up from


author: Alex Medved _ConfiForms_
body: What do you mean by "choose record"?

You can set up rules in ConfiForms to lookup values from another form - <https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Field+Definition+Rules#ConfiFormsFieldDefinitionRules-Lookupandsetvalue>

earlier I have provided you an example


author: Kushagra Sahu
body: By "choose record" I mean to say:

* I have multiple entries recorded in Form1
* When the user open ups Form2, the looked up values that will be shown in Form2, I want it to be of the latest entry of Form1

Kushagra


author: Kushagra Sahu
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) any thoughts on this?


author: Alex Medved _ConfiForms_
body: Honestly, the comment I left on March 1 answers your question - you need to use <https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Field+Definition+Rules#ConfiFormsFieldDefinitionRules-Lookupandsetvalue> if you want to lookup values from another form and set them whenever you want them to be set

I really cannot give any other answer

Alex


author: Pramodh M
body: Hi [@Kushagra Sahu](/t5/user/viewprofilepage/user-id/4380667)

Here's the reference on how to input the page id when creating a page via confiforms

<https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Confiforms-How-to-pass-through-PageId-to-create-a-page-in-a/qaq-p/1179099>

Thanks


Tags: confiforms

confluence-server

server