Expand my Community achievements bar.

Submit clearing required field

Avatar

Level 2

I have two buttons on my pdf file.  One that submits the form by proxy and another that prints the form (print form checks that the raw value of the fields is not null).  I extended the form for reader.

In reader, when I either save the form or submit the form by email and reopen  try to click print form it says that the required fields are not filled?

Also, empty fields are replaced by default values?

How can I fix this is there a recalculate or reset I need to do on document open?

13 Replies

Avatar

Level 2

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.

Avatar

Former Community Member

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.

Paul

Avatar

Level 2

It is already set that way

Preserve scripting changes  to form when saved:

Automatically radio button is selected?

Avatar

Level 2

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?

Avatar

Former Community Member

Can you send the form to LiveCycle8@gmail.com so I can have a look ....please include a description of how to reproduce the issue in the email.

paul

Avatar

Level 2

sent

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 form
it says
"raw null edit [ value I entered] format [value I entered]"

Avatar

Former Community Member

All of those fields are set to global binding ...can you bind them to your schema and try it again?

Paul

Avatar

Level 2

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

work ok.

However, it looks like I have to add that otherbox.rawValue=this.rawValue

for each field?

Why aren't global vars saved?

Avatar

Level 2

Ok, I got that part working. The problem was that there was not an entry in

my xml file despite being in the schema.

Avatar

Level 2

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

disappear.

Avatar

Former Community Member

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.

Paul

Avatar

Level 2

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

input field.

Avatar

Former Community Member

OK send the form and schema to LiveCycle8@gmail.com and I will have a look.

Paul