alternative required fields [solved]

since I’ve got two fields that are required alternatively (that means if I fill one, the other shouldn’t be filled in), I need to -prbly- create a validation rule for that.

Does anyone have an idea on how to do that?

  1. Just create method in your model.

  2. use it name as validation rule in your rule array.

  3. And make those checks in this method.

that was very easy, thank you very much.