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

Required Fields Email and Print

Coyote1002
Registered: Aug 15 2010
Posts: 6

Hi,

I have created a form in Livecycle Designer 8.2. I have set the fields Required in Object, Value, User Entered Required.

In each required field I have added in Javasript using the Exit event:

if (Name.rawValue != null){
Name.mandatory = "disabled";
}

Now when I click print any fields not completed are shown in Red which is great.

But I now need it to do the same on the Submit By Email button. I have tried adding the same javascript but using the PreSubmit event but when I click the email button it just open the email screen.

Any suggestions.

Thanks

Wayne

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You need to test each possible required field to see if it has been completed or not by use of a variable indicating if any required field has not been completed. After check all of the required fields, you can test your variable to see if all of the required fields have been completed or not. If completed email or print and if not then alert the user to the issue.

George Kaiser

Coyote1002
Registered: Aug 15 2010
Posts: 6
Hi,

I'm new to javascript, could you post an example.

Thanks.