Confiforms autopopulate page title

Is there a way in Confiforms to autopopulate a field with the page title? I know that autopage pulls the page ID, but I need the page title and don't want users to have to manually enter it.

1 answer

This widget could not be displayed.
Davin Studer Community Champion Aug 19, 2016

What do you mean by auto-populate the page title? The title of the page they are on?

Hi

I have the same question. While defining the fields in confiform, would like to preset the title of the page they are on is one specific field. How do we acheive it

Davin Studer Community Champion May 14, 2018

In the registration control properties look for a setting called "Set values as key=value pairs, separated by & (as request parameters)". Put the below string into the field where the left most "title" is the name if the field that you want populated.

title=[entry._page.title]

 So if you field is called pageName then it would look like this.

pageName=[entry._page.title]

Thanks Davin. It works. 

However, if the registration control is embedded in a different page is it possible to populate the title of the page where the form and form fields are defined

Example:

a) Page Title - Ack

    Form Name - Form1

    Field Name - Content, Name

 

b) Page Title - Updates

   Form Regitration Control - Referring Form1

    Key=value pairs are set as "Content=[entry._page.title]&Name=[user.fullName]"

Here Page title is stored as "Updates". But i would like the Pagetitle "Ack" to be displayed. How can we achieve this.

 

In my use case, Registration Control will not be in the same page where the form is defined

Davin Studer Community Champion May 16, 2018

Are these pages being dynamically created from a template or something? If not why not just have a field where you hard code in the value for the page where you host the form? 

1) Form is hosted on a page with title "test" and it has 3 fields name, date, title. The registration control is defined in page with title "Check". While defining the registration control, we can pre set the values for name and date.

But not clear and sure of how we can hardcode and preset the value for title field with "test"

2) Have raised the below question under -" Confiform csv extract without meta data"

https://community.atlassian.com/t5/Marketplace-Apps-questions/Confiform-csv-extract-without-meta-data/qaq-p/797615

 But have not received any reponse. Request your support

Davin Studer Community Champion May 21, 2018

If title is a text field you can just do something like this ...

title=test

If the field is a "Page/Bog post" type you can populate it in the registration control like I said above. But instead of putting in the page name you need to put in the page id. So go to the page with your form and edit the page. Then look in your browser's url for the page id. This is what you will put into your registration control. So it would look something like this.

title=635830297

Hi Davin

Thanks for our response, It was helpful.

Have raised a query related to confiforms in the below page. Can you please check and provide your response.

https://community.atlassian.com/t5/Marketplace-Apps-questions/Confiforms-Registration-Control-Warning-to-be-displayed-on-the/qaq-p/860317

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

343 views 2 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you