Print Page | Close Window

Form level validation for required fields

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: PDF Developers
Forum Description: This conference is for PDF developers.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=2254
Printed Date: 13 Nov 2018 at 5:27am
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Form level validation for required fields
Posted By: MattB12
Subject: Form level validation for required fields
Date Posted: 01 Dec 2017 at 1:51am
I have yet to be able to solve this scripting problem so I am hoping that someone can assist.

I have a dynamic pdf form created in LC where I have a need to validate if all required fields have data entered in them byway of a button (not a submit button as all I am doing is verifying that all required fields have data entered in them).

The type of fields that I have;
Text
Date/Time
Radio Button
Check Box
Drop Down List
Numeric Field
Expanding Table

If a button were to be pushed (Ok or Print) and certain required fields were left empty than only those fields should be highlighted along with a message box (app.alert) telling the form user that all required fields have not been filled out. If the button were pushed and all required fields had been completed than a message box should pop up telling them that all required fields have been filled out and they may now proceed by applying a digital signature. Until all required fields are filled out the digital signature box should be either disabled (viewable but cant do anything with it) or hidden and then becomes viewable after successful form validation.

There are many hidden objects/subforms which may become visible depending on user selections. When these objects and/or subforms are hidden they should not be considered a required field for this purpose.

I have tried to piece mail scripts together using what I have learned while creating this form, online forums and a few references but have yet to be successful.

https://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf - https://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf
https://helpx.adobe.com/pdf/aem-forms/6-3/scripting-reference.pdf - https://helpx.adobe.com/pdf/aem-forms/6-3/scripting-reference.pdf



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net