These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Removing validation code

goldie6175
Registered: Feb 26 2008
Posts: 38

I have a form, and like many others, I am getting validation errors when the field has no validation. I read that I need to remove this from the XML code, so I highlight the field, switch over to the XML view and can't see where I am supposed to remove it. Is it father down the page, and if so, where? Any help would be appreciated!

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If the field doesn't have any validation, it shouldn't be complaining. And you should never have to edit the XML for somthing like this. Validation is set from either the "Object > Data" tab, or with a script.Can you post an example form to someplace where it can be downloaded?

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

goldie6175
Registered: Feb 26 2008
Posts: 38
http://www.hmgc.mcw.edu/forms/PhysiologyCheckRequistion.pdf

Another weird thing, since you are going to take a look at it, is that I have made fields "required", but that doesn't seem to work either.

Thanks for your help. Anne
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is a very nice looking form, and it's well organized:)

But there is a validation pattern for the "RequestorName" field, and several other fields have the validation error message check box checked. You'll find these options on the "Object - Data" tab. These should all be removed.

The email submit button uses the old AcroForms submitForms function. While this function provides much, much more flexibility in data submission than the built in LiveCycle submit, it doesn't trigger the "Required" fields checking. Only the built-in LiveCycle submit will do this. This function is most useful when there is a need for custom pre-submit validation code, or the more advanced submit options are necessary. Neither situation seems to be true for this form, so you could easily use one of the built-in emial submit options.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

goldie6175
Registered: Feb 26 2008
Posts: 38
Is there a way to use this button and have the form email as a pdf? I don't see that option.

Thanks!
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi goldie6175,

Since you mentioned that so many others have the valdiation problem you are having, could you report on whether removing those checks on the validation error message checkbox, and the pattern validation on "RequestorName" field did indeed work for you?

Thanks,

Dimitri
WindJack Solutions
www.windjack.com
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The email submit options don't provide a way to set the submission type. However, there is a way.

Place a regular button on to the form. In the Object Field tab chage the button Control Type to Submit. Then on the Submit tab enter the URL with the "mailto:" prefix and set "Submit As" to PDF.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

goldie6175
Registered: Feb 26 2008
Posts: 38
Dimitri wrote:
Since you mentioned that so many others have the valdiation problem you are having, could you report on whether removing those checks on the validation error message checkbox, and the pattern validation on "RequestorName" field did indeed work for you?
Yes, it seems to work removing the checks! YAY!

Thanks for everyone's help, especially Thomp!

:D