since ‎08-11-2011
‎10-12-2019
Eric_Rosenfeld
Level 1
Changing an object's presence based on an amount range AND a Pull-Down Selection
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi,I have a form that changes various object's presence based on an amount range similar to this:switch (true){case this.rawValue >= 1 && this.rawValue <= 49999:Subhead1.presence = "visible";Subhead2.presence = "hidden";break;case this.rawValue >= 50000 && this.rawValue <= 250000:Subhead1.presence = "hidden";Subhead2.presence = "visible";break;default:Subhead1.presence = "hidden";Subhead2.presence = "hidden";}As an enhancement, I would like to add a pull-down selection field that changes the amo...

Views

166

Likes

0

Replies

1
Re: Edit Submit Button
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi DonnaB,If you are testing the submit button within the Livecycle Designer application's "Preview PDF", this button will usually fail to trigger the action.Have you tried to save your document and test the submit button in Acrobat Pro or the Adobe Reader (with reader extend active)?Regards,Eric

Views

76

Likes

0

Replies

0
Re: Finding the length of a numeric field
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
1. Enter text{9999999999} into the Validation Pattern field (per real2's suggestion).2. In the Object, Value tab, enter your message (i.e.- This field must contain exactly 10 numeric characters) in the "Validation Pattern Message" field and check the error box.3. In the Object Value tab, select the "Form Level Validation Settings". In "Form Validation", select "Color Failed Fields" and select a border color (red). You can also select a background color, but the border color should be enough for ...

Views

143

Likes

0

Replies

0
Re: At least one field completed to submit
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Bruce,Thanks for the solution!Regards,Eric

Views

84

Likes

0

Replies

0
At least one field completed to submit
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi,I have a form with 3 text fields with their values set as REQUIRED . At least one of the fields must be completed in order for the email submit button to function.Is there a script that will change the required fields to optional field values when at least one of the three contains data?Thanks,Eric

Views

231

Likes

0

Replies

2
Re: Script for changing objects presence based on amount range
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Bruce,Your solution worked perfectly. If I was to expand the ranges (let's say to three ranges), would I just have to add another "case this" logic section such as this?switch (true) { case this.rawValue >= 1 && this.rawValue <= 49999: SignatureSubhead1.presence = "visible"; SignatureSubhead2.presence = "hidden"; SignatureSubhead3.presence = "hidden"; break; case this.rawValue >= 50000 && this.rawValue <= 249999: SignatureSubhead1.presence = "hidden"; SignatureSubhead2.presence = "visible"; S...

Views

90

Likes

0

Replies

0
Script for changing objects presence based on amount range
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hello,Is there a way to change an objects presence (either a field or a subhead) based on the entered amount range in a numeric field? For example:-The numeric field amount entered is a range between 1 and 49,999, then "Signature Subhead 1" appears.-The numeric field amount entered is a range between 50,000 and 250,000, then "Signature Subhead 2" appears.Etc.Any advice for this script would be appreciated.Thanks!

Views

295

Likes

0

Replies

3
Re: Print multiple copies with unique distribution instructions
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Radzmar,I misstated the scripting in Acrobat Pro. In Acrobat Pro, I used the basic Show/Hide, message and print actions for the PRINT button (not a script).Perhaps if I show you my current script for then click event of the PRINT button in Livecycle, then you can possibly detect the error in my code:form1.page1.Copy1.presence = "visible";form1.page1.Copy1.relevant = "+print";xfa.host.messageBox("Print DEALER COPY?");xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);form...

Views

86

Likes

0

Replies

0
Print multiple copies with unique distribution instructions
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hello,Is there a Livecycle javascript that can be applied to a PRINT button on a single page that will print multiple copies with each copy having a unique distribution field at the bottom of each page?For example:The first copy shows the field "DEALER COPY", followed by the message "Print Dealer Copy?, then prints after user clicks OK.The second copy hides "DEALER COPY", then shows the field "CUSTOMER COPY", followed by the message "Print Customer Copy?, then prints after user clicks OK.I can c...

Views

797

Likes

0

Replies

2
Re: Auto Numbering on a Repeat Subform
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hello nele_sonntag,I tried to create a form that uses your dynamic column scripts, but the form fails to generate the column additions.Would it be possible to attach a PDF that contains your example so that I can identify where I made my mistake?Really appreciated!

Views

335

Likes

0

Replies

0
Re: Modification of a javascript for calculating a total
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Bibhu,Your solution worked perfectly.Thank you very much.Eric

Views

320

Likes

0

Replies

0
Modification of a javascript for calculating a total
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hello Experts,I have a form that uses the following javascript to calculate a total:this.rawValue = Qty1.rawValue * UnitPrice1.rawValue * Calc1.rawValue ;The script works fine, but I am looking for another option where I can also enter just the value in the "Total" field (and leave the qty, unit price, calc fields blank).I tried to set the "Total" field's value type to "User Entered - Optional" or "Calculated - User Can Override", but the Total field will still not populate (still needs the othe...

Views

788

Likes

0

Replies

2
Re: Added Rows Do Not Save
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
I will give the rebuild of the repeating subform in a new document a try.Thanks,Eric

Views

87

Likes

0

Replies

0
Re: Added Rows Do Not Save
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Jono,I am not receiving any other suggestions from the community. Should I create a new discussion for this issue along with the link to the form?Thanks,Eric

Views

117

Likes

0

Replies

0
Re: Added Rows Do Not Save
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
I hope that there are other experts in this forum who can assist me with this issue.Thanks,Eric

Views

127

Likes

0

Replies

0
Re: Added Rows Do Not Save
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Jono,I changed the script as you suggested but still no luck. After saving the form with user rights invoked printing, saving, etc., then I opened the document in Acrobat Reader (which is what my clients will use to complete the form) and it still disappears the added lines after saving the data and reopening it.Was this update successful for you in the Acrobat Reader?Thanks,EricPS: I really appreciate all of the assistance!

Views

122

Likes

0

Replies

0
Re: Added Rows Do Not Save
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Thanks for the sharing instructions. Here is the link to the document:https://acrobat.com/#d=D4Zu7pvQSPc5yFw7AiVV3gEric

Views

117

Likes

0

Replies

0
Re: Added Rows Do Not Save
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Jono,I can't locate an upload button in this forum. Should I just reply to your e-mail with the form?Thanks,Eric

Views

125

Likes

0

Replies

0
Re: Added Rows Do Not Save
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Jono,I am currently using the following scrpts:Add Button:item.instanceManager.addInstance(1);Delete Button: this.resolveNode("item").instanceManager.removeInstance(this.parent.index);xfa.form.recalculate(1);Is this the correct logic?Thanks,Eric

Views

116

Likes

0

Replies

0
Re: Added Rows Do Not Save
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Jono,Thanks for the quick response.I checked my default settings and the "Preserve scripting changes to form when saved" was already set as "Manually". The form failed with this setting, so I tried selecting "Automatically". Still fails.There is a check box titled, "Enforce Strict Scoping Rules in Javascript" that is currently UNCHECKED in my form. Should this be checked?Thanks,Eric

Views

114

Likes

0

Replies

0
Added Rows Do Not Save
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hello Experts,I have a form that contains a dynamic entry subform for adding and removing lines using InstanceManager scripts. The form behaves correctly when clicking on the ADD or DELETE row button.This subform's binding is set to display with a Minimum Count of 1 and a Maximum Count of 10.As an example of the issue, the form is filled, let's say with 2 more added lines, then SAVE, CLOSE the form is selected. When reopening the form, the 2 added lines and their content disappears. Only the 1st...

Views

3.0K

Likes

0

Replies

18
Re: Dynamic Entry Subform fails to Add/Remove lines.
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Srini,The addition of the subform wrapper has fixed the issue. Once I adjust the various calculation fields with this wrapper, it should work great.Much thanks,Eric

Views

64

Likes

0

Replies

0
Dynamic Entry Subform fails to Add/Remove lines.
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hello,I have created a form that uses a dynamic entry subform which adds new lines or removes existing lines per button clicks.The dynamic entry subform functions correctly if the subform is set as VISIBLE upon opening the form.However, if I start this dynamic entry subform as HIDDEN and use 2 radio buttons to hide or show the subform objects (subform default is set to hidden), the dynamic entry subform that adds new lines will fail when clicking on the ADD button.The ADD button uses this javasc...

Views

787

Likes

0

Replies

3
Re: Submitting via E-Mail Hides Subforms
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hi Abhiram,Thank you for the solution. It worked perfectly!Sincerely,Eric

Views

66

Likes

0

Replies

0
Submitting via E-Mail Hides Subforms
Avatar

Eric_Rosenfeld

Eric_Rosenfeld
- Adobe LiveCycle
Hello Experts,I have a dynamic PDF that works as planned. However, there is a bug in the "Submit by Email" function. The completed form contains various subforms that depending on the Choice Pull-Down selection, specific subforms will display for form-fill.When a customer submits by e-mail, all of the subforms will hide leaving only the Choice Pull-Down visible. If we select the choice in the pull-down, then the completed subforms will reappear. But this leaves the possibility of selecting the w...

Views

570

Likes

0

Replies

2