Adding XForms events to Orbeon Form Builder

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding XForms events to Orbeon Form Builder

coloneltravis
Hello,
Are there any plans to add XForms events and actions to the form builder UI to allow custom functionality to be applied to form controls without editing the form source?

This is fairly common in IDEs where you can specify events handlers for onclick, onchange, onmousedown, etc.

Also, to make it extra user-friendly, the Blockly code blocks could be used and interpreted to xpath or javascript.

Thanks,
Jake.
Reply | Threaded
Open this post in threaded view
|

Re: Adding XForms events to Orbeon Form Builder

Alessandro  Vernet
Administrator
Hi Jake,

Yes, in the context of actions. Actions are already triggered by a subset of all the events available in XForms (form load, value change, click), but they can only run services, and the request for enhancement linked below calls for making actions independent from services:

https://github.com/orbeon/orbeon-forms/issues/1610

Indeed, we want to make Form Builder easy to use for people who don't necessarily know about XPath. We took some step towards that goal by adding pre-defined validations to the Control Settings dialog, e.g. or max length. We are planning to add more, and have a UI in the works to express boolean expressions. Using Blocky is an interesting idea; we'll keep that in mind as a possibility.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet