Expand my Community achievements bar.

Adobe Reader Crashes Using Deigner 7 form

Avatar

Former Community Member
Hello,



I have a form I made in Designer 7 and when opened using Adobe Reader 7 it crashes. It crashes when I use the dropdown field that makes another field visible/invisible to be specific and it does it on every such field.



Here is the code that is attached to one such field...

if (this.boundItem(xfa.event.newText) == "No") {



p2q13b1.presence = "invisible";

p2q13b1.access = "readOnly";

p2q13b1.mandatory = "disabled";



} else {



p2q13b1.presence = "visible";

p2q13b1.access = "open";

p2q13b1.mandatory = "error";

}



The errors I get are not real helpful, one states it can't read the memory and the other just says it's closing.

I have the event set to Java/client



Any ideas would be great!



By the way, this form works on Reader 8.0 just fine.
1 Reply

Avatar

Former Community Member
OK,I still have the version problem but found the following code in my form causes the crashing....



xfa.host.resetData(xfa.form.form1.P1.P1body.P1hideme1a.somExpression);

xfa.host.resetData(xfa.form.form1.P2.P2body.P1hideme1b.somExpression);



This code activates on the dropdown change event and resets other field if the user changes their mind during data entry.



Any ideas or work around for this?