since ‎31-01-2008
‎10-12-2019
Jono_Moore
Level 6
Re: Hide Button / Lock Fields after form is completed
Avatar

Jono_Moore

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.

Views

749

Like

1

Replies

0
Re: Resources for from design - best practices for layout?
Avatar

Jono_Moore

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.

Views

706

Likes

0

Replies

0
Re: Can I make a Text Box in LiveCycle be flowable in a PDF
Avatar

Jono_Moore

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.

Views

582

Likes

0

Replies

0
Re: Resources for from design - best practices for layout?
Avatar

Jono_Moore

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

Views

703

Likes

0

Replies

0
Re: Javascript to clear a populated field
Avatar

Jono_Moore

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.

Views

477

Likes

0

Replies

0
Re: Dynamically populate text field based on result of on-the-fly calculation?
Avatar

Jono_Moore

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

Views

638

Likes

0

Replies

0
Re: Firing Two Scripts One After Another
Avatar

Jono_Moore

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/

Views

417

Likes

0

Replies

0
Re: Check box value assigned by Numeric Field rawValue
Avatar

Jono_Moore

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

Views

456

Likes

0

Replies

0
Re: Copying and displaying user input value in repeatable table
Avatar

Jono_Moore

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

Views

437

Likes

0

Replies

0
Re: Saving a form trhat everyone can open
Avatar

Jono_Moore

Jono_Moore
- Adobe LiveCycle
Also on Macintosh is make sure it is Reader opening the file and not Apple's Preview app.

Views

545

Likes

0

Replies

0
Re: Limit the number of digits in a numeric field
Avatar

Jono_Moore

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 = "";}

Views

1.4K

Like

1

Replies

0
Re: editing a doc created in lifecycle using pdf
Avatar

Jono_Moore

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.

Views

463

Likes

0

Replies

0
Re: In Adobe Forms Central can I move the column order in the response table?
Avatar

Jono_Moore

Jono_Moore
- Adobe LiveCycle
You're in the wrong forum, this one is for LiveCycle Designer.Try here:http://forums.adobe.com/community/formscentral

Views

602

Likes

0

Replies

0
Re: Dynamic flow around static content?
Avatar

Jono_Moore

Jono_Moore
- Adobe LiveCycle
Sorry, been swamped at work the last bit.Can you share your form somewhere?

Views

526

Likes

0

Replies

0
Re: How to flow text across multiple pages in 9
Avatar

Jono_Moore

Jono_Moore
- Adobe LiveCycle
The flowing aspect is for people filling out the form, not for designing the form unfortunately.

Views

643

Like

1

Replies

0
Re: Dynamic flow around static content?
Avatar

Jono_Moore

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.

Views

525

Likes

0

Replies

0
Re: Dynamic flow around static content?
Avatar

Jono_Moore

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.

Views

527

Likes

0

Replies

0
2nd Edition of J.P. Terry's LiveCycle Designer book now available
Avatar

Jono_Moore

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.

Views

2.3K

Likes

0

Replies

1
Re: Dropdown with two rawValues
Avatar

Jono_Moore

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.

Views

466

Like

1

Replies

0
Re: Making a selection visible when picking from a dropdown
Avatar

Jono_Moore

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.

Views

482

Likes

0

Replies

0
Re: Javascript Wildcard for Repeating Row
Avatar

Jono_Moore

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

Views

638

Likes

0

Replies

0
Re: Dropdown with two rawValues
Avatar

Jono_Moore

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.

Views

454

Likes

0

Replies

0
Re: Dropdown with two rawValues
Avatar

Jono_Moore

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!

Views

426

Like

1

Replies

0
Re: Dropdown with two rawValues
Avatar

Jono_Moore

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.

Views

470

Likes

0

Replies

0
Re: Help with writing Javascript to uncheck checkboxes.
Avatar

Jono_Moore

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.

Views

671

Likes

0

Replies

0
Re: Dropdown with two rawValues
Avatar

Jono_Moore

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

Views

456

Likes

0

Replies

0
Re: Dropdown with two rawValues
Avatar

Jono_Moore

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/

Views

460

Likes

0

Replies

0
Re: Help with writing Javascript to uncheck checkboxes.
Avatar

Jono_Moore

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.

Views

681

Likes

0

Replies

0
Re: Help with writing Javascript to uncheck checkboxes.
Avatar

Jono_Moore

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) {

Views

684

Likes

0

Replies

0
Re: Problem with Printing Images in a Form
Avatar

Jono_Moore

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.

Views

484

Likes

0

Replies

0