You need to sign in to do that
Don't have an account?

validation rule for an opportunity closed date
Hi my scenario is to restrict the user,if they try to edit the opportunity record after the three business days from the ClosedDate field. For example : if i update the opportunity after three days from the ClosedDate(5/12/2016), it will through an alart message, then if i edit the ClosedDate as 5/13/2016 then the record will save. But by requirement is to restrict the update operation itself.
(CASE( MOD( CloseDate - DATE(1900, 1, 7), 7), 0, CloseDate+3, 1, CloseDate+3, 2, CloseDate+3, 3, CloseDate+5, 4, CloseDate+5, 5, CloseDate+5, 6, CloseDate+4, CloseDate))<=TODAY()
This should give you 3 days without the ability to change the date as per Ch Nagendra Prasad’s simplified example: Or applying it to your original business day example: Haven’t tested it but this should do it.
Good luck.
All Answers
Try this, It will prevent edit operation itself.
Hi Ch Nagendra Prasad
Thanks for your reply
Actually if i try to edit the CloseDate field bu future date,then its not showing an alert messagevsimply record get saved.
This should give you 3 days without the ability to change the date as per Ch Nagendra Prasad’s simplified example: Or applying it to your original business day example: Haven’t tested it but this should do it.
Good luck.
paste it in Error Formula box:
If this helps you out, mark this Best Answer