can you show with an image your hierarchy and your code?
It should be working fine by looking at this quickly... I don't see anything that wouldn't make it work...
Try using the try catch statement to see if any error occurs,
Otherwise use a message box to see what xfa.even.newText is returning as a value
If none of these work, would you share your form so I can take a look at it?
I've been using other code and just editing where I know to edit. I'm not sure how to do the catch statement or the return value check.
Attached is my form. I had to edit the information out for the most part because of the sensitivity of the document.
**Sorry for the tiny upload link. I couldn't see how to attach a document here.
The error is not within your code, it is within the form itself...
Within LiveCycle Designer, you have form properties which will design the PDF on how it will react
You form is set to be a Static PDF and a lot of functionalities are disabled within Static PDFs
To change your form from static to dynamic, follow the instructions:
1. Within LiveCycle, open your PDF form
2. Click Files > Form Properties
3. Open Defaults Tab and change the last dropdownlist from Static to Dynamic (this option might be useless as it is for server side only, but change it anyway)
4. Open Preview Tab and change "Preview Adobe XML Form as" from "Static PDF Form" to "Dynamic XML Form"
Hope this will help ya!
This worked. I had an issue with my code that I fixed. Once I fixed that it worked perfectly. Thank you so much for your help.