Thanks in Advance.
Try xfa.host.messageBox("" + eval(1+1));
messageBox takes a string, your eval is returning a number.
The message gives me the right syntax(as commented), however TextDescription (TextField) is still non editable. The text field and the button are on the same detail line. And when user clicks Button (Edit button) the text field needs to be editable. Have any suggestions.
Chris, Finally I understood I am make round trip approach. Thank you for you line of code it works. However following line of code in FormClac works with no problem where as it do not work in Java script. And I feel like I am missing some thing with your statement "[" and "]". If I recall correctly the similar syntax works in HTML.
It works in FormCalc because it is a scripting language designed by us specifically for working with an XFA DOM.