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
SFDC n12SFDC n12 

Visual flow validation help needed


I am having a text field in my visualforce flow which should accept only "Yes" or "No" , other than that it shouldnt accept anyThing,

Please tell me how to achieve  it in Visual flow validation

Thanks in Advance
Forza di SognoForza di Sogno
You could add a Decision element after the text field and only route the flow to the next stage if the previous value is either Yes or No.  For anything else, route the user back to the text field for re-entry.