First of all, hope everyone is having a great and spooky day!
Secondly, I've moved on to the Admin Intermediate Trailhead and the validation rule module is perhaps a bit over my head. I clicked through some resources in the module but what I don't understand is how (picturing myself in an admin role for a company) would I know how to write specific codes to make validation rules work for users in the org? Ay suggestions for other trailheads that I can take that would break down and explain how to write code functions? Thanks
Hi Ashley, the key is, as Steve mentioned above, is that you need a formula that will trigger the Validation Rule when the record being saved does not meet the requirements.
So you want your formula to read as true when a Contact is saved and their Account ID is not blank and whose Zip does not match the Account Zip exactly.
The question does give you tips on which conditions to use:
NOT(IS BLANK(field name) - when used together this checks if a field has a value or not and returns as true if is does
(field name1)<> (field name2) will check if the two zip codes match exactly.
Couple them up in an AND() statement and the Validation rule will check for both and pop up if the Contact doesn't pass.
I used to Google a LOT (and get help from Steve etc) while I was learning. Try Googling 'Salesforce Validation Rule formula for field is not blank/field does not match exactly' and see what options come up and try and few! There is no easy way to learn about all the possible conditions and statement for formulas, it's a fair bit of trial and error.