I have a field in the form for which I have to check that it
should have some specific string e.g 1234. I tried using below it
works if I don't put anyhting in there then it tells me that some
value is required but if I enter some value but not that specific
string it does not give me the error message.