Friday, May 15, 2015
You will benefit from this improvement if you're embedding a form created with Orbeon Forms into an existing web page, whether you do this using the server-side embedding API, the proxy portlet, or full portlet. In any of those cases, starting with Orbeon Forms 4.9, you don't have to worry about the version of jQuery used by Orbeon Forms conflicting with the version of jQuery used by your page.
Tuesday, May 5, 2015
Major features and enhancements
- Form Builder
- New control for showing explanatory text. Lots of forms require explanations, often inline with form fields. Until now, you had to use workarounds to do this in Form Builder, such as using a Text Output field with an HTML label. The new Explanation control addresses this need, and allows you to place explanatory rich text anywhere in your form. (blog post, #507)
- Custom alerts for invalid data types and missing required fields. Since version 4.3, Form Builder allows you to set separate alert messages for constraints. Now you can also set separate alerts to show when the datatype is incorrect, as well as when a field is required but missing. (doc, #1978)
- Deselecting all radio buttons. Radio buttons do not have a way, in HTML, to be completely deselected except programmatically. This is usually not something you need to do in a form, but in Form Builder this is often desirable. The Itemset Editor now allows you to do just this (with thanks to Aaron Spike). (#595)
- Performance improvements. We improved performance of very large forms in Form Builder. (#2183, #2181)
- Form Runner
- Fix for occasional data loss with section templates. This is an important fix, which we have also backported to previous version of Orbeon Forms. We recommend patching Orbeon Forms if you are using section templates. (#2106)
- New wizard validated mode. This new wizard mode allows you to only navigate forward if there are no errors on all preceding pages as well as the current page. This helps ensure that the user follows specific steps when filling out a form. (blog post, #2066)
- Email validation too strict on TLDs supported. Up until recently, it was possible to know which top-level domains (such as .com, . fr, etc.) were actually in use and to include such tests as part of email validation. But currently there are 810 of those, and the number is likely to grow. So we have relaxed our email validator to allow any TLD. (#2116)
- Configurable PDF file name. You can now configure the filename to use with the PDF button on the Form Runner Detail page. The filename is configurable via XPath and can even depend on form data. (#2122)
- Accessibility improvements.
- Screen readers will now tell you whether an input field is invalid and/or required, via the aria-invalid and aria-required attributes. (#2148)
- The Refresh button now includes a label. (#2158)
- Button with menus tell you they are collapsed or expanded (#2162)
- Performance improvements. We implemented a couple of performance enhancements, in particular to handle large form updates under Chrome. (#2185, #2174)
- Nested required and type elements. You can now use elements instead of attributes to assign required and type model item properties. This allows giving them distinct identifiers and alert messages. (doc and doc, #1978)
- New functions to access the username, group and roles. The following functions can be used to access current user information: xxf:username(), xxf:user-group(), and xxf:user-roles(). These functions also work when using headers-based permissions. (doc, #2062, #2063)
Other new features and bug-fixes
Including the major features and enhancements above, we closed over 80 issues since Orbeon Forms 4.8.2 (and almost 100 since 4.8.0).
- Form Builder (creating forms)
- Chrome 42 (latest stable version) and Chrome 44 dev (current dev channel)
- Firefox 37 (latest stable version) and the current Firefox ESR
- IE 11
- Safari 8
- Form Runner (accessing form)
- All browsers supported by Form Builder (see above)
- IE8, IE9 and IE10
- Safari Mobile on iOS 7 and iOS 8
- Chrome for Android (stable channel)
- jQuery. The version of jQuery used by Orbeon Forms is now "namespaced", which means you can't use it directly anymore by referring to $ or jQuery. Instead, if you want to refer to the version of jQuery used by Orbeon Forms, use ORBEON.jQuery.
- HTTP header forwarding
- The oxf.xforms.forward-submission-headers property is deprecated. Use oxf.http.forward-headers when needed.
- You don't need to add Orbeon-Client to oxf.http.forward-headers anymore.
- The XForms xxf:forward-submission-headers attribute on xf:model, which allows to specify header forwarding on a per-form basis, is removed. Use instead the global oxf.http.forward-headers property.
- XForms error handling
- XPath static errors now always cause an error upon form load, and XPath dynamic errors never do. (doc)
- The oxf.xforms.fatal-errors-during-initialization property is removed.
- Authentication. There is now a separate servlet filter called orbeon-form-runner-auth-servlet-filter which provides authentication information to Form Runner. Previously the functionality performed by this filter was done internally. If you make changes to the Orbeon Forms web.xml file, you need to make sure that this filter is present. If you use the stock web.xml, there shouldn't be any need for changes.
Thursday, April 23, 2015
Orbeon Forms can automatically produce nice PDF files without any extra work (see the documentation).
While PDFs are useful for printing and archival, they also have a few smarter features. For example, web links in a PDF file can be made clickable, and this is something that Orbeon Forms leverages:
- Links in rich text content are clickable and open your web browser to the target link.
- Links identified in regular input fields and text areas are automatically highlighted and clickable as well. 
And now we have added detection and automatic linking of email addresses in input fields and text areas as well. Here is an example of PDF output with the various types of links Orbeon Forms detects:
This enhancement will be included in Orbeon Forms 4.9. And for the curious, you can see the regular expressions we use for this.
This feature was introduced with Orbeon Forms 4.6, but we hadn’t covered in a blog post yet! ↩
Monday, April 6, 2015
- A hint, shown below the field. Using a hint works well for short pieces of information that fit comfortably below the field.
- A help message, shown in a popover when users click on a help icon next to the field. The help works well for longer pieces of texts that users won't necessarily need.
In Form Builder, the explanation control shows in the left sidebar, just like other controls, so form authors can add it anywhere in the form where other controls can be added. Upon inserting an explanation control, in Form Builder, form authors can type text in a rich text editor:
At runtime, when users fill out the form, this text will just show as-is:
Just like the text in the label, hint, and help, text entered in the explanation control is fully localizable, and forms can have different version of that text for all the different languages supported by the form. Form authors can localize the text in an explanation control directly from Form Builder, just like they do for the label, hint, and help.
We'd like to thank Aaron Spike, from the Martin Luther College for contributing a large part of the underlying code for this feature. Thank you, Aaron!
Tuesday, March 31, 2015
Specifically, this release addresses the following issues since version 4.8.1:
- Form Builder
- XBL template bind attribute prefix/namespace lost when control inserted (#2095)
- Form Runner
- xxbl:mirror="true" not working after oxf.xforms.cache.documents.size reached (#2106)
- Wrong value in date/time control when using picker (#2086)
- Error when generating schema for form using section template (#2091)
- NPE when running pipeline with output from CLI (#2092)
- Autocomplete: fr-set-label has no effect if resource doesn't use the value (#2098)
- POST to /new handles missing data-format-version incorrectly (#2104)
- PDF: Wrong language if fr-language was passed to new/edit/view page (#2110)
- Tables in HTML control labels don't show in the PDF (#2135)
- Email validation too strict on TLDs supported (#2116)
- Persistence proxy to support header/cookies forwarding (#2053)
- Liferay Proxy Portlet - init-param "enable-url-parameters" is backwards (#2138)
- Error "The moduleId is not correct" when deploying portlet (#2153)
- Disable Liferay "speed filters" in proxy portlet (#2155)
Wednesday, March 18, 2015
The Form Runner wizard view is widely used by Orbeon Forms users: it presents a simple, navigable view of a form’s top-level sections, shown as separate pages.
Until recently, the wizard view only supported free navigation. In this mode, you can freely navigate between pages, independently from whether there are validation errors.
In Orbeon Forms 4.9, we are introducing a new wizard mode, called the validated mode. 
The main idea of this new mode is to prevent the user from navigating to subsequent pages until all the data entered so far is valid:
- You can always navigate back in the wizard, even if you have errors on the current page.
- But you can only navigate forward if there are no errors on all preceding pages as well as the current page.
This helps ensure that the user follows (and hopefully pays more attention to) specific steps when filling out a form.
There is a little twist: once you have visited a page, you can freely navigate again to it, whether with the Next button or the table of contents. The idea behind this is that it can be frustrating to enter information on a page, only to be prevented by the wizard to reach that information at a later time.
As an aside, this improvement also fixes an issue related to incorrect highlighting of errors within wizard pages. 
The complete documentation is available here. We hope you will enjoy this feature!
The free mode is still the default, and you enable the validated mode with a property. ↩
Here is an example of back-and-forth: ↩
- You are on the first page.
- You press the Next button, but you have errors on the page. All the errors show in the error summary and forward navigation is prevented.
- You fix the errors, and press the Next button again. This time navigation succeeds and you reach the second page.
- You press the Back button to the first page again, and make a field invalid.
- Now, even with that invalid field, you can still reach the second page, because you have already visited it.
Monday, February 2, 2015
Specifically, this release addresses the following issues:
- Form Builder
- Incorrect label edited upon insert of XBL with nested labels (#2075)
- Form Runner
- Error when producing PDF in parallel with Ajax request (#2071)
- Crash when paging on Summary page (6af5bed6c5)
- fr:number: incorrect rounding when using decimal separator other than `.` (#2076)
- Custom mips are not propagated to section templates (#2065)