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

John_Kordas
John_Kordas
Offline

Badges

Badges
6

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts

Posts
13

Discussions

Discussions
12

Questions

Questions
1

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by John_Kordas
Customize the badges you want to showcase on your profile
Validate that one or more checkbox are ticked. - Adobe LiveCycle 05-04-2009
Currently I'm checking if the user has ticked at least one of the checkboxes by using:if(CheckBox1.rawValue == 0 && CheckBox2.rawValue == 0){app.alert("Please select one or more checkboxes.");}Is there a way to count the number of checkboxes and do a loop. If you have 15 checkboxes the code above gets a bit hard to read.I've also use the in the xml to flag the checkbox as being required but this is not true. As long as one or more checkboxes are select the user should not be alerted or shown th...

Views

1.7K

Likes

0

Replies

1
Re: Insert Script Object? - Adobe LiveCycle 11-07-2006
Thanks Steve,It works without a hitch. Im still getting my head around JavaScript and 2 weeks, 6 hours a day of reading and testing and reading is slowly getting clearer I think.Just to make sure Im getting this clear in my head. The way I had the script before was when it was applied to the field that showed the value it was referring to this as the field itself. So it worked not worries because it was point to the itself.When I tried to apply the same script in a script object field (variables...

Views

253

Likes

0

Replies

0
Re: Insert Script Object? - Adobe LiveCycle 10-07-2006
Back to square one.Using the logic above if I make a script object and call it setTotals with the following script in place:function Totals(){var totalval = form1.costs.spei1.rawValue + form1.costs.spei2.rawValue;if (totalval == 0 || totalval == null || totalval == ""){ this.rawValue = "";}else{ this.rawValue = totalval;}}Then in the field that is to display the totals I put the following script under calculate:form1.variables.setTotals.Totals();When I type a figure into spei1 or spei2 nothing h...

Views

253

Likes

0

Replies

0
Re: Insert Script Object? - Adobe LiveCycle 10-07-2006
Why is it that after you post a message you go back to the problem and play a little bit more and work out the answer?I change the script object slightly so as to not confuse myself but still called it Hello:function Welcome(){app.alert("Hello World")}Then on the action mouse up I used:form1.variables.hello.Welcome();And what do you know it all works.

Views

253

Likes

0

Replies

0
Insert Script Object? - Adobe LiveCycle 10-07-2006
In Acrobat Pro you can create a document script as follows:function Hello(){app.alert("Hello World")}And call this Hello.If you create button on the page then create an action on Mouse Up Run a JavaScript which looks like this:Hello();A message box appears saying Hello World click OK and press the button and it keeps coming back.Now in Designer this is a little different.I create a new page, insert a script object rename it to Hello and type:function Hello(){app.alert("Hello World")}I then creat...

Views

792

Likes

0

Replies

6
What is the best way to validate? - Adobe LiveCycle 05-07-2006
This image is a template Im using to create an expense form. http://img160.imageshack.us/img160/963/form25vp.jpgI have a specials item section which is just totaled from all the Special Items fields.Was able to create a totals script to but could not get it to leave the field blank. Thanks to Justin Klei using this script it totals without a problem.This has been placed it the Calculate section of the Total field.var totalval = form1.costs.spei1.rawValue + form1.costs.spei2.rawValue;if (totalval...

Views

241

Likes

0

Replies

0
Re: Trying to keep field blank using JavaScript. - Adobe LiveCycle 05-07-2006
Thank you Justin,I am immensely great full and for your help it worked like a treat. I have posted a couple of questions in the Designer section but did not get any response. Not sure if its the why I put my questions out , so I thought Id try here.Ive created some basic forms using the FormCalc language but never tried JavaScript. Ive spent the last 2 weeks watching JavaScript DVDs which are more based on WEB design. I also purchased John Deuberts book Extending Acrobat Forms with JavaScript wh...

Views

121

Likes

0

Replies

0
Trying to keep field blank using JavaScript. - Adobe LiveCycle 04-07-2006
I have put this script in to the totals field which works fine but displays $0.00.form1.costs.spetot.rawValue = form1.costs.spei1.rawValue + form1.costs.spei2.rawValue;To try and remove this Ive used a script out of the Extending Acrobat Forms with JavaScript. Ive also read that the get,Field needs to be changed in Designer but I can not seem to see where Im going wrong.The setup is:3 fieldsFirst is special item1 = spei1Second is special item 2 = spei2This is the total = spetotJust want a script...

Views

691

Likes

0

Replies

2
Re: Calculation suggestion. Can anyone help me? - Adobe LiveCycle 03-07-2006
Is there a way to have the figure update if the spetot figure is changed?Would I need another if statement?

Views

209

Likes

0

Replies

0
Where is the attachment panel and page option in Designer? - Adobe LiveCycle 03-07-2006
In the document properties (in Acrobat), initial view tab and Navigation tab option you can select Attachments Panels and Page.Can this be done is Designer can not seem to find a similar option.Regards, John.

Views

293

Likes

0

Replies

0