1

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.

1 Answer 1

6

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) + 
  IF(ISBLANK(Field3),0,1)
) > 1

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

1
  • This is a clever trick :)
    – datasert
    Commented Feb 24, 2015 at 22:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .