I have 3 Text field in a page. While saving only one text field should have the value. If more then one text filed has a value it should throw an error. How i can do this in validation rule.


there could be other better ways, but one possible way i can think of is to do something like this

( IF(ISBLANK(Field1),0,1) + 
  IF(ISBLANK(Field2),0,1) + 
) > 1

this will check if more than one field has value, it will return true and you can show an error

  • This is a clever trick :) Feb 24 '15 at 22:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.