Our documentation has been relocated here, the Liferay Developer Network. Please update your bookmarks!

What’s New with Liferay Forms

Liferay Forms is evolving. This article compiles the prominent changes and additions to Forms. More details on these features are found in the other articles of this section.

Form Rules
Set dynamic form behavior by specifying conditions (if this happens in field X) and actions (then do this: X). Available actions include Show, Enable, Require, Autofill, Calculate, and Jump to Page.

forms-rule-development.png

Figure 1: Form Rules trigger an action in response to some condition.

Form Translation
Provide translations of the same form into the platform’s supported languages. Form Users select the language they’d like to see.

forms-translation.png

Figure 2: Translate a Form into a supported language.

New Fields and Properties
File Upload fields let logged in Users upload documents to the Form. Numeric fields validate that input is numeric. Grid fields let Users select from options laid out in rows and columns. One selection can be made per row.

forms-sidebar.png

Figure 3: File Upload, Grid, and Numeric fields are new.

Element Sets
Create reusable Form fragments that can be used to quickly populate new Forms with common fields and configurations.

forms-element-set.png

Figure 4: Reusable Element Sets are great for quickly populating new forms.

Autosave : By default, a Form is auto-saved every minute (without the Form builder clicking Save). The duration is configurable in Control Panel → Configuration → System Settings → Forms. Auto-saves do not propagate to published Forms.

forms-autosave-interval.png

Figure 5: Autosaving Forms ensures your recent changes are preserved.

Autocomplete Text Fields
Using a Data Provider or manually typed options, configure a Text field to offer Users autocompleted values to choose from as they type in the Text field. Set up autocomplete in the Text field’s Properties.

forms-autocomplete.png

Figure 6: A User beings typing in a Text field and is pleasantly surprised by a list of autocomplete options.

Form Success Page
Add a Form Page that displays after a successful Form submission.

forms-success-page.png

Figure 7: A Success Page provides feedback to the User that the form Submission was successful.

Duplicate Forms and Form Fields
Duplicate a Form to avoid building a similar one from scratch. Duplicate Form Fields if you need multiple similarly configured fields.

forms-duplicate.png

Figure 8: Duplicate a Form to get a head start on your next, similar Form.

Validate Text Field Entries
Add validation logic to a Text field and create custom messages for form validation errors. Use regular expressions in your validation by choosing the Does not match value in the If Input Select from List field.

forms-text-validation.png

Figure 9: Validate Text fields to ensure Users enter the correct data.

Data Provider Enhancements
Data Providers are still used to populate Select from List fields. The Data Provider setup form has been overhauled, and you can import and export Data Provider definitions. Data Providers are also linked with the Autocomplete feature and the Autofill rule.

forms-data-provider.png

Figure 10: The Data Provider interface was redesigned and new options added.

XLS Form Entries Data
Export entries to XLS format.

forms-xls.png

Figure 11: Export Form Entries to XLS. CSV and XML are also available.

More enhancements are planned for the future.

0 (0 Votes)
Forms Previous