How to make a field mandatory depending on another
Hello,
On the create view of one of my documents I have a list box with 3 values: a, b, c, and a date picker.
I need the date to be set as mandatory only if a or b is present in the list box.
I've been reading here and there about JSF and found that the most approaching answer was given by this topic on stackoverflow:
But when I try to reproduce this kind of declaration inside my layout definition, it just doesn't work.
Can anyone please share a sample ?
Hi,
You're looking for cross validation, you should checkout http://www.nuxeo.com/blog/cross-validation-with-jsf/ or http://stackoverflow.com/questions/6282466/jsf-doesnt-support-cross-field-validation-is-there-a-workaround