Expand|Select|Wrap|Line Numbers
- if (!(this.isNull)) {
- var tf = this.rawValue;
- if (tf < 1 ) {
- xfa.host.messageBox("The number must be a numeral starting from 1.","Incorrect Number",1);
- xfa.host.setFocus("TextField27"); }
- if (tf.length < 7) {
- var diff = 7 - tf.length;
- for (var i=0;i < diff;i++) {
- tf = "0" + tf;}
- this.rawValue = tf;}
- var regExp = /\d{7}/;//}
- if (!(regExp.test(tf))) {
- xfa.host.messageBox("The number must be in the format of 9999999.","Validation",1);
- this.rawValue = "";
- xfa.host.setFocus("TextField27");}}