Separate server validation messages for one field?
Hello there - a quick question for you I think!
I have a field which has "Required" validation applied to it and I have since added a "Unique Database Value" validation..
This seems to have combined the two validations into one and tied both to the same serverInvalidState message.
Is it easy to split the validations, hence having one "Required" message and another if the "Unique Database Value" fails?
Here's the code;
<?php
if (ValidatedField('kbcustomersinsert','kbcustomersinsert')) {
if ((strpos((",".ValidatedField("kbcustomersinsert","kbcustomersinsert").","), "," . "4" . ",") !== false || "4" == "") || (strpos((",".ValidatedField("kbcustomersinsert","kbcustomersinsert").","), "," . "5" . ",") !== false || "5" == "")) {
if (!(false)) {
?><span class="serverInvalidState" id="customer_email_ServerError">Please enter a full Email Address</span><?php //WAFV_Conditional kb_customers_insert.php kbcustomersinsert(4,5:)
}
}
}?>
Many thanks