function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tester6789Tester6789 

Add validation rule in Flow

I have a simple flow in which I want to check whether atleast 2 out of 3 questions are anwered on one screen.Is there a way to check using validation rule in flow? 
I have used the following formula on one of the three fields but its not working.I think for validation rule in flow,the error message is displayed if the formula evaluates to false.Even if I put NOT() before the fields,it doesnt work.Please help.

NOT(AND(ISNULL({!HighAchieverAnswer}),OR(ISNULL({!ChangeAgentAnswer}),ISNULL({!SelfAwarenessAnswer}))))


Here is my flow. its being accessed by a button.User-added image

Thanks.
phiberoptikphiberoptik
What are your three fields' types?
phiberoptikphiberoptik
This should throw an error if more than one field is blank.
 
IF(ISBLANK(!HighAchieverAnswer),1,0)+ 
IF(ISBLANK(!ChangeAgentAnswer),1,0)+ 
IF(ISBLANK({!SelfAwarenessAnswer),1,0) > 1

 
Tester6789Tester6789
These are long text area fields.
Tester6789Tester6789
I changed the validation to this as error message is displayed on false for flows but it doesnt seem to be working:

(IF(ISBLANK({!HighAchiever}),0,1)+IF(ISBLANK({!ChangeAgentAnswer}),0,1)+IF(ISBLANK({!SelfAwarenessAnswer}),0,1)) > 1

Please let me know what is wrong with the logic?

Thanks
phiberoptikphiberoptik
So you are saying that a flow (sorry Im a novice in that area), requires validation rules to act the opposite of standard UI type validation rules?