Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

DubDubDubDesig1
DubDubDubDesig1
Offline

Badges

Badges
3

Accepted Solutions

Accepted Solutions
0

Likes

Likes
0

Posts

Posts
6

Discussions

Discussions
0

Questions

Questions
6

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by DubDubDubDesig1
Customize the badges you want to showcase on your profile
Re: LiveCycle Newbie: Validate Before Printing Form - Adobe LiveCycle 24-10-2013
Hi, you just copy the if statement again below the other and rename thefield to look at.if (form1.execValidate()){var cToAddr = "909@gideons.org";var cCCAddr = RegionalDirector.rawValueif (otheremailfield.rawValue != null){cCCAddr += ";" + otheremailfield.rawValue;}if (otheremailfield2.rawValue != null){cCCAddr += ";" + otheremailfield2.rawValue;}var cSubLine = xfa.resolveNode("#subform[0].#subform[7].CampName").rawValue+ ", " + xfa.resolveNode("#subform[0].#subform[7].Country").rawValue + "909 ...

Views

726

Likes

0

Replies

0
Re: LiveCycle Newbie: Validate Before Printing Form - Adobe LiveCycle 22-10-2013
The code to add if an email exists is in red. The cc address field used asemicolon separated list of email addresses, so you can add as many as youwish using semicolon between each.if (form1.execValidate()){var cToAddr = "909@gideons.org";var cCCAddr = RegionalDirector.rawValueif (otheremailfield.rawValue != null){cCCAddr += ";" + otheremailfield.rawValue;}var cSubLine = xfa.resolveNode("#subform[0].#subform[7].CampName").rawValue+ ", " + xfa.resolveNode("#subform[0].#subform[7].Country").rawVal...

Views

727

Likes

0

Replies

0
Re: LiveCycle Newbie: Validate Before Printing Form - Adobe LiveCycle 18-10-2013
HiNo Problem, we all have to start somewhere.Yes you would just wrap your existing code in the "if" statement as youhave shown. However, its not so much myfield but the entire form you areperforming the execValidation code on (by default the entire form is calledform1 e.g. form1.execValidation()), you can see this name at the top of thetree structure in the hierarchical view within Livecycle.Don't forget you also need to set any fields you wish to be mandatory as arequired field in the Object Vi...

Views

730

Likes

0

Replies

0
Re: LiveCycle Newbie: Validate Before Printing Form - Adobe LiveCycle 17-10-2013
I have created an example which I have posted on the below linkhttp://www.dubdubdubdesigns.co.uk/livecycle/examples/button%20click%20with%20form%20validation.pdfIts quite simple-- set the fields on your form as user entered - required fields,- set up your required fields form actions in the form properties section.- surround your script with a if (form1.execValidation()) { YOUR SCRIPTGOES HERE }Any problems let me know

Views

728

Likes

0

Replies

0
Re: LiveCycle Newbie: Validate Before Printing Form - Adobe LiveCycle 30-05-2013
HiYou may find it easier to implement the method described in the below link on my website.This prevents printing and highlights any fields that are set as "required by user" that are not complete when an attempt to print is made (including the ctr+P shortcut)http://www.dubdubdubdesigns.co.uk/livecycle/examples/pre-print_validation.pdfAny ???s just askCheersGraham

Views

991

Likes

0

Replies

0
Re: LiveCycle Newbie: Validate Before Printing Form - Adobe LiveCycle 26-03-2013
Hi There are a few ways to do this.You can do it on the click activity of the button itself to check if the checkbox is ticked e.g.form1.#subform[0].PrintButton1::click - (JavaScript, client)if ( CheckBox1.rawValue == "1" ){xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);} else{xfa.host.messageBox("You Must Check The Box To Print This Form");}Or you can set the print button as readOnly when it is initialisedform1.#subform[0].PrintButton1::initialize - (JavaScript, client...

Views

994

Likes

0

Replies

0