Hi Forum,
I've placed the following code snippet in my Add Page | Before record added Event.
if ($inline)
{
if ($values["plannerstart_town"]==$values["plannerend_town"]){
$plannerstarttown = 'true';
}else{
$plannerstarttown = 'false';
}
}
if ($inline)
{
if ($values["plannerstart_city"]==$values["plannerend_city"]){
$plannerstartcity = 'true';
}else{
$plannerstartcity = 'false';
}
}
if ($plannerstarttown == 'true') {
echo "<script>alert('Cannot be same town ...');</script>";
return false;
}elseif ($plannerstartcity == 'true') {
echo "<script>alert('Cannot be same city ...');</script>";
return false;
} else {
return true;
}
Here's the problem:
[/u][/b]When i execute the project and enter "london" for fields, then the logic displays a dialog box saying "Cannot be same town ..." - this is working fine.
However after clicking ok on the dialog box, an error hyperlink message (Error occurred >>) is displayed on the screen. On hovering on the hyperlink an empty red box is displayed.
I would simply like to remove this error hyperlink message when both [color="#000080"]$plannerstarttown fields match. Think this will confuse the end user.
Your help and support would be much appreciated.
Lisa[/color]