cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch multiple field values before save of the form?

Ansel_Andrew
Champ in-the-making
Champ in-the-making

I want to fetch different form field values before hitting the save button, so that i can do some validations. I know that we can bind a Validator to a form field, but how can i get different form field values in this validator method?

ie. i have Two fields Field A and Field B. My validator is bound to Field B. How can i fetch the entered value of Field A in field B's validator? Field B's validation is done based on the field A's value.

Thanks, Ansel

1 ACCEPTED ANSWER

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

This can be achieved by using a widget template that will retrieve values from both components, and perform the cross validation: http://www.nuxeo.com/blog/development/2009/03/cross-validation-with-jsf/

View answer in original post

2 REPLIES 2

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

This can be achieved by using a widget template that will retrieve values from both components, and perform the cross validation: http://www.nuxeo.com/blog/development/2009/03/cross-validation-with-jsf/

The issue that i am facing is that the field is not a text widget but an multivalued vocabulary. How can i fetch the First level value of this vocabulary so that i can go ahead with the validation.Similarly how to fetch Complex multivalued fields value in the same template?

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.