Web Forms Portlet

Note: this feature has been added in Liferay Portal 4.3

Introduction #

The web forms portlet is a tool that allows a web administrator to define a form to be published in the website. Users visiting the website can then fill the form which is then sent to a configured email address or saved (to file or to database).

Attached are two screenshots to see how the portlet looks like in view and edit configuration modes.

Features #

  • The title and introductory description of the form shown to the users are configurable
  • The email address and subject of the email is also configurable per form
  • It is possible to have as many different forms per website and page as desired (Instanceable portlet)
  • Three types of fields: text, text box and select box
  • Save to database
  • Export to CSV file

Limitations and future work #

Following is a list of known limitations that might be solved in the future:

  • "Export do file" sections is seen only after someone fills that form.
  • A fixed number of max fields must be configured at deployment time (in portlet.xml). This should be expanded so that there is no max. limit and new fields can be added through the UI
  • Three types of fields: text, text box and select box
  • Not internationalizable: it's not possible to have the form title, form description and field labels in several languages
  • (at least in 5.2.3) Mandatory Fields should not contain spaces in their label

Other improvements that might be done are:

  • Support more field types
  • Show statistics about the answers (requires previous feature)
  • Email to multiple contacts (comma or colon-separated list)

References #

  • http://support.liferay.com/browse/LEP-2558
2 Anexos
109126 Visualizações
Média (4 Votos)
A média da avaliação é 1.75 estrelas de 5.
Comentários
Respostas do tópico Autor Data
Ad more filed types: It could be useful to have... Milan Jaroš 30 de Dezembro de 2008 02:35
can we set email address based on user input? delang j 15 de Fevereiro de 2009 19:03
# Store the answers in a database It stores... Auditya manikanta Vadrevu 14 de Julho de 2009 02:04
Auditya - yes, it stores the answers into the... David Hunter 18 de Maio de 2010 12:46
David, I'm using Liferay 5.2. Under "portlet... Péter Kormos 2 de Agosto de 2010 12:51
Why are the addresses of sender and recipient... Matus Ferko 19 de Agosto de 2009 03:24
Agree coffy, there should be checkbox send a... Suresh Nimmakayala 23 de Setembro de 2009 14:40
There's an open issue. ... Kirk Stork 5 de Janeiro de 2011 17:32
Should be a field type that saves the username... Eduardo Roldan 28 de Abril de 2010 00:02
Hi.. I want to know how can i add new buttons... ankit yakkundi 27 de Setembro de 2010 05:30
Should allow to add additional text form fields. Manuel Hoyos 11 de Abril de 2013 23:25
Is is possible to increase question length? Now... Raquel Brown 13 de Outubro de 2013 08:52

Ad more filed types: It could be useful to have support for <input type="file"/>.
Postado em 30/12/08 02:35.
can we set email address based on user input?
Postado em 15/02/09 19:03.
# Store the answers in a database

It stores in database in expandotable,expandocolumn,expandorow,expandovalue.
Postado em 14/07/09 02:04.
Why are the addresses of sender and recipient the same? There should some way to set up sender e-mail address.
Postado em 19/08/09 03:24.
Agree coffy, there should be checkbox send a copy to sender ? like that
Postado em 23/09/09 14:40 em resposta a Matus Ferko.
Should be a field type that saves the username (if authenticated) of the person filling the form.
Postado em 28/04/10 00:02.
Auditya - yes, it stores the answers into the Expando tables - however how do you extract the data for viewing ?
Postado em 18/05/10 12:46 em resposta a Auditya manikanta Vadrevu.
David,

I'm using Liferay 5.2.
Under "portlet configuration", there are two tabs, "General" and "Form Fileds".
First make sure, that "Save to Database" is enabled under "General".
Then after a couple of form submits, go to
"Form Fileds" tab, and there's an "Export Data" button. That would get you a CSV with all the form data submitted so far.

You might try "Save to File" as well, that would generate the same CSV on the disc.

HTH,

Peter
Postado em 02/08/10 12:51 em resposta a David Hunter.
Hi..
I want to know how can i add new buttons on the web form portlet like save,delete,etc.Which should work as name suggest.
Postado em 27/09/10 05:30.
There's an open issue. http://issues.liferay.com/browse/LEP-7196

But having been filed in 2008, I gather nobody cares too much about this.

It seems to me the sender should either be configurable or use the same sender information used for other Portal-generated emails, like new account notifications and such.
Postado em 05/01/11 17:32 em resposta a Matus Ferko.
Should allow to add additional text form fields.
Postado em 11/04/13 23:25.
Is is possible to increase question length? Now it's limited to 75 characters.
Postado em 13/10/13 08:52.