Forums

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

How do I create a confluence page with the details filled in ConfiForm?

Kushagra Sahu February 23, 2022

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.

2 answers

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
February 23, 2022

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

Kushagra Sahu February 23, 2022

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?

Alex Medved _ConfiForms_
Community Champion
February 23, 2022

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

Like Kushagra Sahu likes this
Kushagra Sahu February 23, 2022

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!

Alex Medved _ConfiForms_
Community Champion
February 23, 2022

Sorry, not sure I understand this comment.

Any visuals you can provide?

Kushagra Sahu February 24, 2022

Can't really share a visual, will try to explain again.

  • Created a confiform
  • Created a space template like demonstrated in this 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!

Alex Medved _ConfiForms_
Community Champion
February 24, 2022

Are you asking on how to CHANGE the template variables in your Confluence template from ConfiForms? 

Kushagra Sahu February 24, 2022

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!

Kushagra Sahu February 28, 2022

Hi @Alex Medved _ConfiForms_ , any ideas on the above?

Alex Medved _ConfiForms_
Community Champion
March 1, 2022

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

Kushagra Sahu March 1, 2022

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
Alex Medved _ConfiForms_
Community Champion
March 1, 2022

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 

Kushagra Sahu March 15, 2022

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

Kushagra Sahu March 16, 2022

@Alex Medved _ConfiForms_ any thoughts on this?

Alex Medved _ConfiForms_
Community Champion
March 16, 2022

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

0 votes
Pramodh M
Community Champion
February 23, 2022

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events