I have a form in which I would like one field ("BillingID") to become visible if the value in an adjacent dropdown box ("Doc_type") equals a certain value, but otherwise to remain invisible. Although the Doc_type drop down text choices are more verbose, I've assigned the values A and B to the choices to simplify codinglater, if that makes a difference. The field BillingID's presence is set to "invisible" when the form is opened.
I've attached the actual code that is working in my form (in case you see something else in it that might help you). Since I have only been using LiveCycle Designer v8 for a very short time I'm unable to provide further assistance with your error. Sorry, I know how frustrating it can be. Hopefully someone else can offer assistance.
OK, I got it. I used a "switch" statement on xfa.event.newText and it works fine. However, what's odd is that I used the "if...else" conditional with it, like you suggested and it worked fine as well. Why it didn't work before I haven't a clue.