Need help with the Field Validation syntax
Hi,
We have the following field validation in place on one of the Custom date fields in Opportunity objects. This validation checks for certain sales stage ID and date and then if true throws an error. This is happening for all the records no. But now we have a requirement where we have to exclude a certain group of records for this validation..for example if the [<IndexedPick0>]='ABC' then it should ignore this validation...how can I incorporate this in the existing syntax.
(IIf([<SalesStageId>]='AAJA-HHTOL5' AND [<CloseDate>]>Today(),'Error',IIf([<SalesStageId>]='AAJA-HHTOL3' AND [<CloseDate>]>Today(),'Error',IIf([<SalesStageId>]='AAJA-HHTOP9' AND [<CloseDate>]>Today(),'Error',IIf([<SalesStageId>]='AAJA-HHTOQD' AND [<CloseDate>]>Today(),'Error',IIf([<CloseDate>]<[<IndexedDate0>],'Error',IIf([<CloseDate>]>[<dAnticipated_Order_Date_I_ITAG>],'Error',[<CloseDate>])))))))