Is there any way to create a form in confluence and save the inputted data to a page?
Asked by Warren McInnes:

Hi Atlassians,

I would like the know if i can have a page in confluence, where a form is present to ask users questions such as:

Name: \|__________\|

Surname: \|__________\|

Age: \|__________\|

Are you happy: Yes\|_\| No\|_\|

Etc: \|__________\|

\*The questions are only examples

Once the users have completed filling in the form, They can click on something like a button to submit the form, but instead of emailing the info we want it displayed on a confluence page that should be editable if required, but then saves as a newer version.

I'm not sure how to approach this or if it's possible?

Thanks in advance


Answers:
author: Alex Medved _ConfiForms_
body: You can try out [ConfiForms plugin](https://marketplace.atlassian.com/plugins/com.vertuna.confluence.plugins.confiforms "ConfiForms plugin for Confluence, dynamic forms made easy") for Confluence.

Easy to set-up and use, and quite powerful. You can choose from 60+ types of fields, and show the data the way you want (thereis a number of "views" macros to choose from, including the WYSIWYG, tables, calendars...)

Also, you ca setup the form to send the data entered via email, or create a JIRA issue out of it, and many other options

Lot's of tutorials could be found on our wiki, <https://wiki.vertuna.com/display/CONFIFORMS/The+ConfiForms+Plugin+for+Confluence>

comments: author: Amanda Chu
body: Hi Sash,

If I am the only admin creating forms, would I need to buy licenses for the employees who are filling out the forms?

Thanks,

Amanda


author: Alex Medved _ConfiForms_
body: Hi Amanda,

Thank you for your interest.

Confiforms plugin uses the licencing schema suggested by Atlassian, and the price is dependant on the Confluence license you use.

You do not have to buy separate licenses for each employee. Plugin is licensed per Confluence server. And there is no limit on the number of foms you can create. Also there is no limit on the number of users who can create forms - anyone who has page edit rights can create her own forms.

Plugin is fully supported by us and we can help you with initial configuration, so you can start faster building the forms you need and mastering the features it provides.


author: Amanda Chu
body: Thanks Sash!


author: JohnA
body: Hi Warren,

I believe the best way to add forms to a Confluence page is to use the Frevvo Forms plugin: <https://studio.plugins.atlassian.com/wiki/display/CFRV/Confluence+Frevvo+Plugin>

However, you can also build your own forms by following our Confluence development guide if you prefer not to pay for a 3rd-party plugin: <https://developer.atlassian.com/display/AUI/Forms>

All the best,  
John

comments: author: Warren McInnes
body: If I build my own form it's not a problem, however what code would i use to print the data to a confluence page instead of sending to a email?


author: Oliver
body: > However, you can also build your own forms by following our Confluence development guide if you prefer not to pay for a 3rd-party plugin: <https://developer.atlassian.com/display/AUI/Forms>

Woah this is amazing, exactly what I was looking for! No plugin needed, just the default {html} macro - sweet! ![thumbs-up](/html/@6E43D49CFFDA0652A93DEB490F177BB7/images/emoticons/thumbs-up.png "thumbs-up") :smile:


author: Mikael Mikkola
body: I did not get this (AUI/Forms). In the minimal case I would like to have a Confluence page where you can send an anonymous email to a pre-determined address.

In the best case I would, e.g., create a Confluence page that allows the users to

1. fill in text fields "Title", "Main", "Rest"
2. send to [user@domain.com](mailto:user@domain.com) an anonymous email with "Confluence feedback: \<title\>" as its title and "Main" + "Rest" as the text?

Or is there some other simple and free way of doing this?

BTW, the Frevvo plugin costs and its current link is <https://marketplace.atlassian.com/plugins/com.frevvo.forms.confluence/server/overview>  
Also Wufoo costs.


author: rahul Sg
body: Hi Mikael, were you able to send data on an email address with AUI/forms

If yes can you point me to any link? as i am able to create a form but not able to send something using Send Button


author: Mikael Mikkola
body: Hi, I did not. Is there any way?


author: Alex Medved _ConfiForms_
body: It really depends how strict you want to go about email validation. But we think that something like:

```
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$
```

should be sufficient enough.

Set this on **ConfiForms field definition** macro, as **validation rules** parameter. Of course, you can set the custom message which is shown when validation fails.

Answer explains how you can setup a form with validation rules using [ConfiForms plugin](https://marketplace.atlassian.com/plugins/com.vertuna.confluence.plugins.confiforms "ConfiForms plugin for Confluence, dynamic forms made easy") for Confluence. More tutorials about setting up forms to capture user inputs in Confuence can be found in our wiki, <https://wiki.vertuna.com/display/CONFIFORMS/The+ConfiForms+Plugin+for+Confluence>


author: Renjith Pillai
body: How about this Warren?

<http://wiki.customware.net/repository/display/SCAF/Scaffolding+Plugin>


author: Bob Swift (personal)
body: [Run Plugin for Confluence](https://bobswift.atlassian.net/wiki/display/RUN) can provide the form. There are a few options for handling it from there:

1. Write a script using the [Script Plugin for Confluence](https://bobswift.atlassian.net/wiki/display/SCRP) to create the result page.
2. Use the [CLI Plugin for Confluence](https://bobswift.atlassian.net/wiki/display/CCLI) to create the result page - easier but not as flexible as the script

comments: author: Warren McInnes
body: I wasn't really looking for a solution that costs money, but might have to consider it. Thanks


author: Bob Swift (personal)
body: An older version of the run plugin is available free and is probably sufficient for your case.


author: Warren McInnes
body: Hi Bob, could you be more elaborate on the process to achieve this, I fail to see how this works with both the run and cli plugins? Thanks


author: Bob Swift (personal)
body: [How to create or update pages with a run dialog](https://bobswift.atlassian.net/wiki/display/RUN/How+to+create+or+update+pages+with+a+run+dialog) is a simple example.


author: Nayana Las
body: hi.. Were you able to get the answer?

The answers below does not address your question.. I have the same issue where I have a form with radio-button (Yes and No) where default: No.. When I click Yes and hit Submit button - my form gets reset to what was default (No).. I dont want that to happen, i want it to retain its state.. any idea what to do to fix?


author: Ravindran Venkataramana Rao
body: I am a confluence client user, i have the same requirement of

### [**Warren McInnes**](../../users/12883/warren-mcinnes/)has how can i achieve it in confluence {#toc-hId-1538610189}

comments: author: Alex Medved _ConfiForms_
body: Totally possible with ConfiForms plugin, take a look at tutorials here <http://wiki.vertuna.com/display/CONFIFORMS/Tutorials>


author: mike holm
body: there's a survey plugin for confluence. seems like it will meet your needs. i don't remember which versions of confluence it's for. but probably worth looking into.

comments: author: Warren McInnes
body: Thanks Mike, Will do


author: RianA
body: Hi Warren, you might be referring to the [page template](https://confluence.atlassian.com/display/DOC/Creating+a+Page+using+a+Template) in Confluence. Perhaps you could use it to meet your requirement. Cheers!

comments: author: Warren McInnes
body: I have thought about this method, just would like something easier for the non-technical user


author: RianA
body: I see, in that case I would recommend Scaffolding plugin like Renjith mentioned. Please bear in mind that it is a commercialized plugin.


author: AleGsander
body: Just for those who are struggling with that task:  

<https://confluence.atlassian.com/doc/create-a-template-296093779.html>

Via template you have the possibility to work with variables. The WYSIWYG will display this as a text-box (depending on the type you configure the variable)


author: Niharika Shrivastava
body: In a confiform how can we put a validation for email field (?)

comments: author: Alex Medved _ConfiForms_
body: Added as comment above, but basically set this as validation rules in your ConfiForms Field definition\^\[a-zA-Z0-9._%+-\]+@\[a-zA-Z0-9.-\]+\\.\[a-zA-Z\]{2,6}$


author: swaraj jaiswal
body: hi waren.

i am usins Confluence 4.3.7,and merging of page is not working for result page....after submittind data from form..the navigation is going into result page bt not the data,i am not sure whether frevvo will work for me or not


Tags: confiforms

confluence-development

email

forms