since ‎31-01-2008
‎10-12-2019
Jono_Moore
Level 6
Re: Hide Button / Lock Fields after form is completed Jono_Moore - Adobe LiveCycle
If you are using Acrobat, and not LiveCycle Designer, you'll need a different script. I'd check over in the Acrobat forums.
683
Views
1
Like
0
Answers
Re: Resources for from design - best practices for layout? Jono_Moore - Adobe LiveCycle
The grid is your friend. Especially helps for vertical alignment for automatic tab order.I use points for the grid with an interval of 4/pc (1/4th of a pica or 1/24th of an inch). This gives a grid of 3 points and I do all my field and caption measurements in multiples of 3 points, it works really well for me. I'm from a prepress and typesetting background so points aren't too weird for me.
687
Views
0
Likes
0
Answers
Re: Can I make a Text Box in LiveCycle be flowable in a PDF Jono_Moore - Adobe LiveCycle
You can do this with floating fields. I haven't used them much but there are some good references on them kicking around the web.
564
Views
0
Likes
0
Answers
Re: Resources for from design - best practices for layout? Jono_Moore - Adobe LiveCycle
Forms that Work is a good book for form design, it's focused more on web forms but a lot of the information translates to paper or pdf forms as well.http://www.formsthatwork.com/I used to follow some of the stuff at uxmatters.com, here's a list from them on top books (a bit old now). I haven't tried the other books.http://www.uxmatters.com/mt/archives/2010/12/the-top-5-books-about-form-design.phpCreating Dynamic Forms with Adobe LiveCycle Designer by J.P. Terry is a great book that covers design...
684
Views
0
Likes
0
Answers
Re: Javascript to clear a populated field Jono_Moore - Adobe LiveCycle
Set the rawValue to "". So: CST.rawValue = "";You can put that (and the clearItems() line) above the if statement - it has to happen every time so no need to repeat it in each if statement.
456
Views
0
Likes
0
Answers
Re: Dynamically populate text field based on result of on-the-fly calculation? Jono_Moore - Adobe LiveCycle
Your syntax for figuring out the values is a little wonky. You need to test if the value is between two numbers so basically: if value >= lownumber AND value <= highnumber.I would put the code on the Calculate event of the risk classification field - being as it is a calculated field the Change or Exit events aren't going to do anything. (You don't need semicolons or rawvalue for FormCalc. $ equals "this" (the current field).)if ($ ge 16 and $ le 20) then Classification = "Extreme"elseif ($ ge 1...
621
Views
0
Likes
0
Answers
Re: Firing Two Scripts One After Another Jono_Moore - Adobe LiveCycle
Check this example for using two buttons to accomplish what you're after. Basically, your validate/lock script goes on a visible "submit" button and then fires the click event of a second button that does the actual submission.http://www.assuredynamics.com/index.php/portfolio/check-if-form-is-signed-before-emailing/
400
Views
0
Likes
0
Answers
Re: Check box value assigned by Numeric Field rawValue Jono_Moore - Adobe LiveCycle
What event do you have the code on? For it to check the value of the other field it should probably be on the Calculate event.I would reverse the script and put it on the Exit event of the "JhammerPassed" field (unless that is a calculated total).
439
Views
0
Likes
0
Answers
Re: Copying and displaying user input value in repeatable table Jono_Moore - Adobe LiveCycle
You need to get the index (instance number) of the row you are trying to access.Try this on the layout:ready event of your sm field://get index of current rowvar i = this.parent.index;//if current index is greater than zero pull value from previous rowif (i > 0) { this.rawValue = this.resolveNode("Row1[" + (i - 1) + "].em").rawValue;}
421
Views
0
Likes
0
Answers
Re: Saving a form trhat everyone can open Jono_Moore - Adobe LiveCycle
Also on Macintosh is make sure it is Reader opening the file and not Apple's Preview app.
522
Views
0
Likes
0
Answers
Re: Limit the number of digits in a numeric field Jono_Moore - Adobe LiveCycle
There's a couple of ways of doing it.You can use a text field with a character limit and regular expressions to limit the field to numbers.//on the Change eventif (xfa.event.newText.match(/[^0-9]/)) {xfa.event.change = "";}Or you can script to find the length of the numeric field and stop data entering after the length has been reached.//on the Change eventif (xfa.event.newText.length > 6) { xfa.event.change = "";}
1322
Views
1
Like
0
Answers
Re: editing a doc created in lifecycle using pdf Jono_Moore - Adobe LiveCycle
Here's some info for accessibility using LiveCycle Designer. You need to do this in Designer, not Acrobat.http://blogs.adobe.com/LiveCycleHelp/2012/09/livecycle-designer-and-accessibility.htmlI'm afraid I can't help more than that, I've read up on it but we haven't been mandated to implement yet.
449
Views
0
Likes
0
Answers
Re: In Adobe Forms Central can I move the column order in the response table? Jono_Moore - Adobe LiveCycle
You're in the wrong forum, this one is for LiveCycle Designer.Try here:http://forums.adobe.com/community/formscentral
587
Views
0
Likes
0
Answers
Re: Dynamic flow around static content? Jono_Moore - Adobe LiveCycle
Sorry, been swamped at work the last bit.Can you share your form somewhere?
518
Views
0
Likes
0
Answers
Re: How to flow text across multiple pages in 9 Jono_Moore - Adobe LiveCycle
The flowing aspect is for people filling out the form, not for designing the form unfortunately.
603
Views
1
Like
0
Answers
Re: Dynamic flow around static content? Jono_Moore - Adobe LiveCycle
For P1A and P1B try using "Go to Content Area" instead of "Go to Page" and see if that does anything.You shouldn't need to set anything for the subform in P1C - you just want a positioned subform there.
517
Views
0
Likes
0
Answers
Re: Dynamic flow around static content? Jono_Moore - Adobe LiveCycle
Are you telling the flow where to go on the Pagination tab? You can tell it which Content Area to flow to (as well as Page, etc.). So you should be able to flow from the first content area on the first master page to the content area on the second master page. You want to use the "if dataset must be paginated" setting on the Pagination tab and set the OverFlow to the content area you want.
518
Views
0
Likes
0
Answers
2nd Edition of J.P. Terry's LiveCycle Designer book now available Jono_Moore - Adobe LiveCycle
Adobe LiveCycle Designer: Creating Dynamic PDF and HTML5 Forms for Desktop and Mobile Applications (2nd Edition)http://blogs.adobe.com/livecycle/2013/11/adobe-livecycle-designer-book-2nd-edition-released.htmlThe 1st edition of this book was the "missing manual" for me to get going with Designer. If you're starting with Designer or want to learn more it's a great book.
2273
Views
0
Likes
1
Replies
Re: Dropdown with two rawValues Jono_Moore - Adobe LiveCycle
You should only get the commas you need, unless there is data in the other columns? I use CSV files quite a lot for mail-merge applications and sometimes get extras rows at the bottom but never seen a bunch of commas like that.Maybe try selecting the three columns of data and paste into a new spreadsheet and save as CSV. The only thing I can think of is if you have extra columns with titles that might be causing it - usually with CSV the first row is used for naming the columns.
453
Views
1
Like
0
Answers
Re: Making a selection visible when picking from a dropdown Jono_Moore - Adobe LiveCycle
You need to use xfa.event.newText to get the selected value.On the Change event:var newValue = this.boundItem(xfa.event.newText);if (newValue == "5") { term_select.presence = "visible";}//etc.
466
Views
0
Likes
0
Answers
Re: Javascript Wildcard for Repeating Row Jono_Moore - Adobe LiveCycle
You can use the wildcard if you use resolveNodes() instead of resolveNode() and it's more efficient (on large forms it can make a difference).var r = xfa.resolveNodes("Table1.Row[*]"); //variables more efficient if declared outside the loopif (cbNotNeeded.rawValue == 1) { for (var i = 0; i < r.length; i++) { r.item(i).border = "0.069in"; //and whatever else you need to set }}I think the syntax is correct there just going off the top of my head. More info here: http://blogs.adobe.com/formfeed/201...
607
Views
0
Likes
0
Answers
Re: Dropdown with two rawValues Jono_Moore - Adobe LiveCycle
Sounds like you are trying to copy/paste from Excel. You need to open the CSV file in a text editor and copy/paste from there.
441
Views
0
Likes
0
Answers
Re: Dropdown with two rawValues Jono_Moore - Adobe LiveCycle
Doesn't really matter. In Niall's sample he was adding instances and had multiple different values for each item so the loop made sense especially as there were differing amounts of values - so using the array's .length on a given record gives you the correct number of fields.Really just depends on what you're trying to do, if a loop makes it easier go for it!
413
Views
1
Like
0
Answers
Re: Dropdown with two rawValues Jono_Moore - Adobe LiveCycle
As long as your spreadsheet is set up with the values going across the columns you can just Save As a CSV (comma separated values) file.
454
Views
0
Likes
0
Answers
Re: Help with writing Javascript to uncheck checkboxes. Jono_Moore - Adobe LiveCycle
Sorry, didn't notice you weren't using instances so jasotastics changed code should work with the fix for Checkbox not having a period in front of it.
604
Views
0
Likes
0
Answers
Re: Dropdown with two rawValues Jono_Moore - Adobe LiveCycle
You can think of an array as kind of like using instance numbers. The split() method is putting each value into it's own "slot" in the array. So to pull information out you just need to specify the slot you want to reference.In your case you can do away with the loop as you only have two values and just write them out explicitly.var sElements = this.rawValue.split(","); email.rawValue = sElements[0]; //first valuedollar.rawValue = sElements[1]; //second value
442
Views
0
Likes
0
Answers
Re: Dropdown with two rawValues Jono_Moore - Adobe LiveCycle
This sample from Niall might get you going:http://www.assuredynamics.com/index.php/portfolio/splitting-an-objects-rawvalue-into-an-array/
446
Views
0
Likes
0
Answers
Re: Help with writing Javascript to uncheck checkboxes. Jono_Moore - Adobe LiveCycle
Sorry, you need to change the rest of the statements to match the syntax I posted above. I should have been more clear.ResolveNode() expects a string, hence the quotation marks around the text (including the brackets). You're trying to insert a variable into the string which is why the variable is outside of the quotation marks.
614
Views
0
Likes
0
Answers
Re: Help with writing Javascript to uncheck checkboxes. Jono_Moore - Adobe LiveCycle
Your syntax is off with resolveNode(). The instance numbers need to be in brackets. And you need a period to separate the checkbox in the statement:if (xfa.resolveNove("Table1.Row[" + r + "].CheckBox[" + i + "]").rawValue == 0) {I'm thinking you probably don't need the instance number for the Checkbox as you're already specifying the row:if (xfa.resolveNove("Table1.Row[" + r + "].CheckBox").rawValue == 0) {
617
Views
0
Likes
0
Answers
Re: Problem with Printing Images in a Form Jono_Moore - Adobe LiveCycle
The number of colours is fine, PNG is an RGB format so there are no "spot" colours or anything like that. It's the number of transparent colours you need to watch for - so it's fine for clipping an image off of a background or that kind of thing.
473
Views
0
Likes
0
Answers