Hi,
I have a validation for date field such that Date 2 should not be before Date 1 else pop up an error message.
I want this to be applied on Edit screen. With the live fields i get the error message if the condition fails but once i change to correct value still the error message is appearing and the script fails.
Below is my script. Please let me know what i miss and how to achieve this.
if(argv["screen"] == "edit") {
if(argv["date2"]<= argv["date1"]) {
lfShowFieldMessage("date2", "errormessage", "ERROR");
}
else
{
lfHideFieldMessage("date2");
}
}
Thanks,
Krithica