I have 2 fields on a form. For the sake of this discussion, lets assume Telephone Number and Email Address. Either field can be populated; however at least one MUST be.
So the idea is that each field get a validation rule that requires its existance and when one is populated, the others validation rule is "removed". However I cannot figure out how to do this.
I am used to objects having Add and Remove, Open and Close and other orthogonal concecpts. However I cannot figure out how to remove a validation rule once you add it.
Any help would be appreciated.
Thanks
You wouldn't remove a rule - you would create a custom rule method within your BO that checks both property values. Then you can add the rule to both properties (or possibly use the dependency system), and the validation system should take care of the rest.
HTH
- Scott
Copyright (c) Marimer LLC