We are on release 7.2. I have a string field I'm validating and display a p

We are on release 7.2. I have a string field I'm validating and display a popup. This works great, but after clicking OK on popup I want focus to return back to the field. In the script below I get js error when I leave in the "return true", "return false". From the code below how can I get focus back on field in error? The only code you need to look at is at end where the "If" statement is. The field DOB_Entered is the form field I'm checking. Thanks!

var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;
var yyyy = today.getFullYear();
today = yyyy + "" + mm + "" + dd;
var tstdate = FormAPI.getValue("DOB_Entered").id.substring(0);
var tstdate = tstdate.split("/").join("");
tstdate = tstdate.substring(0,2)+"/"+tstdate.substring(2,4)+"/"+tstdate.substring(4);
var splitDate = tstdate.split("/");
var compareDate = new Date(splitDate[2] + "" + splitDate[0] + "" + splitDate[1]);
var monthfield=splitDate[0];
var dayfield=splitDate[1];
v...

OriginalPostID-140191

OriginalPostID-140191

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data