cablan_dynaform : Dynamic Front-end forms

Our dynaform extension uses IRRE to let back-end users define entry forms dynamically in the back-end.

Each form is divided into tabs, which are divided into Questions.

New tabs and questions can be added to a form without refreshing the page, thanks to the AJAX version of IRRE.

There are several types of questions:

  • input: a simple character string
  • text box: a simple textarea text box
  • text box with rte: meant for a RTE enable textbox (FUTURE)
  • files: allows to upload and link files
  • images: allows to upload and display files
  • link: allows the user to fill a link

Each question has a :

  • Title: , which is asked of the user
  • Instruction: additional information to the user
  • Question Compilation Order: order in which the questions will be compiled
  • Prefer and Suffix: used to wrap the answer of the user for the compilation

Screenshot of the back-end dynamic form (Click to enlarge)

In the front-end, everything occurs throught a service

There are no plugins associates with the Dynaform extension: to use it, you create a simple plugin which can call the dynaform service.

The service will display the javascript tabs and the questions, but your extension is responsable for the creation of the actual form.

This allows to add a Dynaform to an existing form, such as a news submission plugin.

Upon saving the form, simply call the service again to compile the Dynaform, and a single HTML string will be returned, with the answers wrapped by their prefix/suffix and ordered by their Question Compilation Order.

A multiple tabs form can thus be used to fill-in an elaborate HTML report automatically.

Available on request only for now

This extension is still in testing and has not been uploaded yet in the extension repository.

Once we will be satisfied by it's quality, it will be uploaded.