cancel
Showing results for 
Search instead for 
Did you mean: 

webform constraints

boneill
Star Contributor
Star Contributor
Is it possible to create a constraint (restriction) accross multiple values of a webform.  I have a complex element called tabs.  It can have a list of tab elements.  Each tab element has an element called "default" that indicates if this is the tab that should be opened first when displaying the tabs.  What I want to do is ensure that a user can only select one tab as being mandatory.

An alterntive approach would be to provide a dropdown list of tabs based on what the user has entered.  But then this list would have to repopulate itself once the user has entered a new tab.  In that way the user could select which tab is the default tab.

Any help greatly appreciated.

Regards

Brian
1 REPLY 1

pmonks
Star Contributor
Star Contributor
I don't believe this is possible using standard XML Schema constraints, although I've used Schematron (http://en.wikipedia.org/wiki/Schematron) for this kind of thing in the past.  That said Alfresco currently doesn't validate XML files produced via forms at all (either basic XML Schema constraints or more sophisticated constraint languages such as Schematron), so this is somewhat moot.

What I'd suggest is raising an enhancement request in JIRA (http://issues.alfresco.com/) for both of these issues (1. validation of XML produced by forms, 2. support for a more sophisticated constraint language, such as Schematron), and then post the links back here so that other interested parties can comment and/or vote for these features.

Cheers,
Peter