Single like text validation on Nintex form

  • 9 August 2019
  • 2 replies
  • 2 views

Badge +2

 

I am trying to set a validation on single line text box to accept yes or no only.

1. Should I create a rule on this text box or should it be on the save button 

I created one on save button  like below but it is not doing anything.

when

{ItemProperty:Study_Status_Change}  != ''yes" | | "no"

then invalidate

 Please help


2 replies

Userlevel 6
Badge +22

Hi,

The validation needs to be on the Single Lines of Text control.

It would look something like:

not(or(equals(TextBox,"Yes"),equals(TextBox,"No")))

I have attached a demo form so you can test.

Badge +2

Hello Simon, 

I did create a validation on the single like text box . So under single line control settings->Validation->Selected regular expression ->(yes|no). 

Now this text box accepts only yes or no values. 

Your solutions works too. I really appreciate you takign time to send me the demo form and help me with the solution. 

Thank you very much

 

Reply