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.
Printed Date: 19 Jul 2019 at 3:26am
Software Version: Web Wiz Forums 11.10 -

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;
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. - -

Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 -
Copyright ©2001-2017 Web Wiz Ltd. -