Atin,
I did a password field validation to check if the 2 passwords that were entered are equal. Using the same method you could validate the value of 3 fields.
Mark
<xp:this.validators>
<xp:validateExpression message="Passwords are not equal">
<xp:this.expression><![CDATA[#{javascript:if ( !getComponent("password1").getSubmittedValue().equals( getComponent("password2").getSubmittedValue() ) )
{
return false;
}
else
{
return true;
}
}]]>
</xp:this.expression>
</xp:validateExpression>
</xp:this.validators>