Why does the Javascript that controls certain text fields not re-render immediately?


i creating form in acrobat xi pro.

 

i made several text fields asking room number. other text fields create sentences based on room number inputs. instance, if user enters room number text box "room1", code "textbox1" following:

 

var roomnumber = getfield("room1").value;

if (roomnumber != "") getfield("textbox1").value= "enter square footage of room "+roomnumber+" here:";

else getfield("textbox1").value="";

 

i'm finding textbox1 not continuously re-render text in "room1" changes. if change entry in room1, textbox1 stays unchanged while. after click on box in form , out again, javascript textbox1 "catches up" , shows correct text.

 

i know code correct, because text boxes behave correctly. shouldn't text fields re-calculated time interacts form?

where did place code? keystroke script launched

after each time value of text field changes. rest of actions

(format, calculation, validation) launch when value committed, ie

when exit field.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Adobe Acrobat Pro , Terminal Server Use

Thread: transmission-daemon isn't playing nice: "409: Conflict"

Thread: gpg: Conflicting Commands