I forgot to mention that the values are actually visible on the screen, but it says they are not.
The values that were blank appear as the default value.
You have to save the state of the form as well ...... on the File/Form Properties/Deafults menu make sure that you have the "Preserve Scripting Changes to Form" checkbox set to Automatic.
It is already set that way
Preserve scripting changes to form when saved:
Automatically radio button is selected?
It is doing the same thing in acrobat pro
If I open the document, enter a value for every required field then save the document, close and reopen the document and attempt to submit it, it says to enter a value for required fields.
Do I need to do something like
rawValue=default value when I open the document?
and I am not sure why fields that I am filling with "" automatically come back with the default value filled in?
I added this line
xfa.host.messageBox("raw " + Header.Accession.rawValue + " edit " + Header.Accession.editValue + " format " + Header.Accession.formattedValue);when I put a value into the box and make a change to the form it pops back"raw [value I entered] edit [ value I entered] format [value I entered]"when i save and reopen the formit says"raw null edit [ value I entered] format [value I entered]"
All of those fields are set to global binding ...can you bind them to your schema and try it again?
yes, I currently do not have them defined in the schema. It seems like
either adding them to my xml schema or setting the binding to none seems to
However, it looks like I have to add that otherbox.rawValue=this.rawValue
for each field?
Why aren't global vars saved?
Ok, I got that part working. The problem was that there was not an entry in
my xml file despite being in the schema.
I have another question about the bindings. At the bottom of the form, I
have an order table that I am adding instances to.
I would like that to be bound to the xml schema as well. However, if I bind
that data it does not save new instances in the xml. Initially, I load the
pdf with a xml file to fill the ordering options. If I put multiple rows
in the xml it will adjust those if I change the data, but won't insert new
rows into the dataset. So, when I close and reopen the pdf the rows
Two things ...make sure that the fields in the table are bound and not set to None.....and second make sure that youhave set the "Preserve Scripting Changes to Form when Saved" to Automatically in the File/Form Properties/Default tab.
I think I have it set that way. I have the 7 text fields bound to the xml
schema. There are a couple of columns unbound, but they do not contain an