Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

set focus when date validation fails

$
0
0

I want to set the focus of the cursor back to the date field when the validation fails... so far ive tried this and it does not work. 

 

joBeth

 

topmostSubform.Page2.DatOfAp::validate - (JavaScript, client)

DatOfApformat = /^\d{2}\/\d{2}\/\d{4,2}$/

if(! DatOfAp.rawValue.match( DatOfApformat ) ) {

xfa.host.messageBox( "Please enter a date (for example 04/14/1978)." );

this.rawValue = null;

xfa.host.setFocus("DatOfAp");

}


Viewing all articles
Browse latest Browse all 16286

Trending Articles