Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

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 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>