I have an issue here. I have an object O1 and a field F1. Field F1 is getting updated when an record is created in another object O2 by a trigger running on object O1.
Field F1 cannot be edited by inline.
There is are validtions rules on object O1.
I need when i create a record in object O2 all the validation rules in O1 should get by passed and field F1 should get updated.
But when an user does an inline edit on a record present in object O1 the validation rule should fire.
To achieve this i created a heirachy custom setting with a checkbox field and added into the validation rule in object O1.
But on inline editing the validation rule is not firing.
validation rule that i used is
NOT( $Setup.ByPassvalidation__c.Bypassrules__c ) && (TODAY() > PRIORVALUE(CloseDate))
Can anyone throw some light on this.