Where exactly did you place the code? Only the keystroke script is launched
after each time the value of a text field changes. The rest of the actions
(Format, Calculation, Validation) launch when the value is committed, ie
when you exit the field.
The code is a "custom calculation script" for TextBox1.
1 person found this helpful
Thought so. Then first of all you should replace all instances of this:
And no, you can't do "update" it when the user is typing in the value,
unless you use a more complex custom keystroke script for Room1.
My code actually used to have event.value instead of getField, but I changed it in attempt to fix the problem. Both methods lead to the same problem.
Even after the user types in the field and clicks out of it, TextBox1 fails to render immediately. Could it have something to do with the "order" in which the fields render, i.e. if TextBox1 renders before Room1, so that it doesn't immediately recognize that Room1 has been changed?
Thank you for your help!
Do you have a calculation for Room1 as well? If so, then yes, that could be
the problem. And you should use event.value...
Also, check that the field calculation order is correct.
Fixed! My field calculation order was all mixed up- that seemed to be the problem. Thanks for your help!
Field calculation order???? Where does one find this??
In Form Edit mode, click on Other Tasks - Set Field Calculation Order.
You are kind of my hero right now! Thanks!
The "getField()" method applies to the doc object so I would have included the "this" for the object reference.