Validate on multiple widget fields

Hi there.

I'm writing a edit page for a document that requires a combination of two fields to be unique. Is there a way of validating a component based on multiple widget fields in the layouts-contrib.xml file?

0 votes

1 answers




You can take example on what's been done in the default user layout to perform password confirm validation. The generic explanation on how to perform cross validation is here:

You can take example on the default nuxeo implementation (layout configuration, custom widget template, and java code of the validation method):

0 votes