Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

delay property inside validate action

$
0
0

Hi,

 

Let's say there is a pdf file with a text field named txtName.

This javascript code will run when a button is clicked.

 

this.delay = true;

this.getField('txtName').value = 'test 1';

this.getField('txtName').textColor = color.green;

this.delay = false;


txtName text field also has a validate action which runs this javascript code. Validate action is triggered after "this.getField('txtName').value = 'test 1'; " is executed in above code.

this.delay = true;

this.getField('txtName').broderStyle = border.d;

this.getField('txtName').comb = true;

this.delay = false;


According to pdf javascript specification what should be the order text field should update?

Should border style and comb update before color or should they update after setting color?


Thanks.


Viewing all articles
Browse latest Browse all 12130

Trending Articles



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