Validation in XPages: one of the two fields should be filled in

Recently friend of mine asked me for help with an XPages application and one of the "problems" we had was validating user inputs.
We needed to make sure that user enters something in one of the two fields. My first thought was "ok, it's going to be a simple xp:validateExpression checking for non empty string and returning true". But after giving it one more thought, I ended up with "just make one of the fields required, if the other one is empty"


Subscribe to RSS - validation