@If((contactMe="Yes") & (@ThisValue = "");@Failure("You must enter a value in " + @ThisName;@Success)
Using @ThisValue and @ThisName instead of hard-coding in field names enables you to copy and paste this code into all the other fields you want to require input for, the firstName and lastName fields, for example.