Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
Excerpt

This tutorial demonstrates advanced capabilities of ConfiForms app and it's APIs and shows you how to build a "non boring" forms for collecting user's feedback


We at Vertuna LLC, live, eat and breath data entry forms, we just love to build forms to quickly collect user opinions and feedback. And we love Atlassian products, so we have built, and continue to build, the best forms add-on for app for Confluence available on Atlassian Marketplace called - ConfiForms, Data entry forms and workflows.

...

When a form is used by anonymous users the createdBy field is left blank


Each image has a custom "onClick" handler and invokes ConfiForms REST API to create new record in the form

The code, the handler invokes, looks something like this:

Code Block
 // mychoice is the value (ID) for each option in "choice" field

 function leaveFeedback(mychoice) {
    AJS.$.ajax({
      url: 'https://wiki.vertuna.com/ajax/confiforms/rest/save.action?pageId=16646199&f=f&choice=' + mychoice,
      type: "GET",
      success: function (data) {
       // here we need to tell we received the feedback
      }
    });
  }

See more complete example on how to setup the handlers with scripting here: Custom feedback form with ConfiForms and some JavaScript


You can also see the form in action and user macro created for you

Children Display


What is good about ConfiForms is that you can use and re-use the defined form on multiple pages, as well as build the "views" around the stored data where you want. Let's build the table over the stored data, we will show the metadata field created with the feedback given

...