You need to sign in to do that
Don't have an account?
jsacpt24
if checkbox = true then must attach file
I have a custom object that I am trying to enforce that if checkbox = true they must attach a file. Any thoughts on how this would be accomplished? Or more if this is able to be accomplished?
SalesFORCE_enFORCEr
You have to write a trigger on Attachment object and populate a field on the Parent object to show the count or name of the attachments. Then, create a validation rule to check if the checkbox is true and the count of attachment is 0 then throw an error message.