can the newText property detect when a value is deleted?


i'm writing script in text field runs change event:

]var myvalue = xfa.event.newtext;
]osubform.textfield.rawvalue = scriptobject.myfunction(thisvalue);

it runs fine when actual value passed function. problem need function run when value deleted text field. can newtext property detect when value cleared via delete / backspace key?

know can run calculate event rather not because text field running script in repeating subform spans multiple pages. previous attempts fire off function calculate event has caused significant slow down in processing.

ariel,
in code posted, assigning value of 'newtext' variable called
'myvalue'. however, when call function, passing in 'thisvalue'. maybe had
cut , paste error when posting message, if not code returning
javascript errors.
should work fine when use delete or backspace key...no issues there. if
not working, due error in custom function. note change
event fired every key press in field.

--
justin klei
cardinal solutions group
www.cardinalsolutions.com


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments