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

Extending Features and Required Fields

cmetell
Registered: Feb 15 2010
Posts: 3
Answered

Hello!

I'm making a form that must be saved and emailed, so I have extended features in Adobe Reader. However, once I extend features (so users can save the form), the required fields no long work. Is there a way to maintain required fields once the extended features is activated?

I look forward to your insights.
Thank - C

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Extending a PDF does not disable the required fields. You must be experiencing some other issue. What exactly are you seeing. Outline the sequence of events.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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

cmetell
Registered: Feb 15 2010
Posts: 3
Hi Thomp,

I used the following code under the " topmostSubform.Page1.Group::preSave - (JavaScript, client)" in Livecyle Designer ES 8.2:
Group.mandatory = "error"
Group.mandatoryMessage = "Group Number is required; please provide Group Number."

By doing so, I hoped that a message would pop up and to tell users they must fill in a required field BEFORE they save the form. The message appears, but AFTER they save it.

Is there script that won't allow users to save until all required fields are completed?

Is this enough info?

Thanks -C
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
No, the "mandatory" property only affects form submission. You cannot stop the user from saving a file to thier own system. However, you can write code to warn them that the form is incomplete.

Unless, which fields are required will be changed on the fly, the mandatory (required) property should be set in the design. Then you can write some code to validate the mandatory fields on PreSave.

This topic has come up before. Search on the LiveCycle forum for "validate required". You should find code for doing exactly what you want.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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