I want to be able to set the field focus to the field failing the field validation so I entered this at my @Failure:
@Failure(“”)
All works fine except for the focus. Any idea what could be wrong?
The HTML for the input field CompanyName is as follows:
<input name=“CompanyName” value=“” class="inputfield1>
Subject: RE: Field focus in @Failure on the web
I believe the problem is that navigating away from the current page, causes your script to exit early.
Subject: RE: Field focus in @Failure on the web
Any way around it?
Subject: RE: Field focus in @Failure on the web
The easiest way is to write your validations in JavaScript. This is also more efficient.