since ‎25-01-2013
‎10-12-2019
ArrueiraVermelh
Level 2
JavaScript to Evaluate Value in an Array of Cells
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Hi There,I am working on a pricing table in an ordering form. I need to show a subform if any row has a subtotal above 2,000. I was able to get that script going except that when the "add row" is clicked the subform is hidden again no matter which subtotals values I have in that column. Another issue is that when edits are made to quantity and unit price the subtotal is not updating. The " delete row" option doesn't seem to affect the script negatively. How can I get "Add row" to correctly evalu...

Views

398

Likes

0

Replies

0
Re: Can you condense my 4 lines of code into 1 line?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
I know this is an older post, but I am working on something similar and the following loop worked for me: // change border color: for (i = 0; i < 4; i++) { this.ui.oneOfChild.border.getElement("edge", i).color.value = "255,0,0"; }Notes:Borders are only 4 items (top, right, bottom, left). Since the count starts at "0" the loop should stop at 4 (thus "i smaller than 4" )Replace "this" with whatever field reference.

Views

322

Likes

0

Replies

0
How do I add an alert condition to a For loop?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Hello Everyone,Could anyone give me a hand with this? I am having a hard time adding code to a For loop to get the result I need.Here is the situation: I am developing a very long form full of conditional inputs. Instead of adding code to each individual field that needs to be shown/hidden upon user input I would rather have a function that looks for fields that start with an arbitrary prefix in their names ("H-").For example:Question: "Do you have a bachelor degree?" Answers: Yes | No (radio bu...

Views

414

Likes

0

Replies

0
Re: Radio buttons fail to call a function... why?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
You are so right and I was so blind! I miss working in an office with more developers! Thanks a million!

Views

637

Likes

0

Replies

0
Re: How do I show hidden objects in the Design View?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Thanks again Bruce. That was indeed the only way I found to keep hidden objects visible in the Design View.

Views

542

Likes

0

Replies

0
Radio buttons fail to call a function... why?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Hello Everyone,I am working on complex form that will require a lot of show/hide fields based on user input. I am trying to automate the behavior with a JavaScript function placed at the parent form level. In fact I already have a couple functions there and they work great. The one below is a mystery. If both function and function calls are placed in the same object (radio group) everything works great. The moment I move the function to my parent form script object nothing works. Any ideas what ...

Views

782

Like

1

Replies

2
Re: How do I hide fields based on their name (using a loop)?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Thank Bruce. It works great now! I want to be able to see the fields in Design view so I am fine leaving the action at the docReady event.

Views

490

Likes

0

Replies

0
Re: LiveCycle/Acrobat not checking for required fields before validation... help!
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
That change did help trigger the native form validation on required fields. However it applied it to the wrong field! Go figure. In any I won't be able to work on 9.1 - the functions required by the form would need to be in version 10 or 11.Thanks a lot for the feedback!

Views

498

Likes

0

Replies

0
How do I hide fields based on their name (using a loop)?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
I have a form that will require several fields to be hidden when the user first loads the form. I would like to automate that with a JavaScript loop where if the object name starts with "hid" set its presence to "hidden".I found the script below in the LiveCycle ES4's documentation but it does nothing. No errors were reported in the JS console. Which event should the loop be added to? Of the parent form? Is the syntax correct for what I am trying to achieve?for (var nPageCount = 0; nPageCount < ...

Views

654

Likes

0

Replies

2
How do I show hidden objects in the Design View?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
I am working on a dynamic form that requires contextual ubforms (show/hide according to input). No problems getting that working. However my subforms have to be set to "hidden" which also removes them from the Design View.Is there a way to show hidden objects in the Design View without changing their Presence setting? I know Dreamweaver does that via "invisible object" symbols. I wonder if LiveCycle allows for the same visual hint and how to enable it.Thanks!

Views

922

Like

1

Replies

2
LiveCycle/Acrobat not checking for required fields before validation... help!
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
I am working on LiveCycle Designer ES4 on a dynamic form linked to a XSD database. I have setup a couple required fields via the Object panel option ("user entered - required").When testing the form in the LiveCycle PDF Preview and/or Acrobat/Reader shows a fail in the required fields validation.While the fields are empty I can tab from one required field to another and no alerts pop-upRequired fields still empty and I hit the submit button and again no alerts, plus the submission completes (via...

Views

771

Likes

0

Replies

2
How do I change form fields to readonly based on user credentials? Is that something Rights Management can do? Or is it something to be done with embedded JavaScript on the form itself?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
I am designing a form that will have one of those "section to be filled by x staff". Here is an example of the workflow: Someone in accounting creates a new instance of the form by entering some data into the "by accounting only" section of the form. Then they send the form to a user to to fill in. At that time the section "by accounting only" should be readonly to the recipient and the rest of form should be editable. Then the user submits the form back to accounting and when the accounting sta...

Views

515

Likes

0

Replies

0
Re: Is it possible to add files to a PDF form submission?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
When I read "add attachments to a PDF form" I understand a file is embedded in the PDF form and will be accessed through the PDF form in Reader or Acrobat. That is not what we want to. We want the attachment to be embedded on the e-mail created on submit. The attachment/file will be stored with the e-mail message. The PDF form is just a tool to streamline that process. As mentioned above we already know the requirements for Acrobat Pro or Reader Extensions and those are not options in our enviro...

Views

679

Likes

0

Replies

0
Is it possible to add files to a PDF form submission?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Hi there, Someone asked me to add an attachment field to a PDF dynamic form. Based on previous research we figured out that will not be possible: our users don't have Acrobat - just Reader - and we won't purchase Reader Extensions. How about using a form field to help the user send the attachments that a are required with that give form? For instance:- User would fill in the form and when asked for attachments he/she would browse for the file.- The form would save the file name as text on the fo...

Views

4.3K

Likes

0

Replies

5
Re: Custom Alerts
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Just in case someone is interested... even though the solution above works for some reason it was making my form flash whenever the submit button was activated while the subform was visible. I thought that would freak out some of the form users so I started looking for other solutions to implement the "required if visible" condition. I started another thread on that solution because it had to do with creating dependable conditions and as a newbie I got stuck on that. If you want to see my final ...

Views

465

Likes

0

Replies

0
Re: How to stop validation?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Just in case someone can find this useful... I resolved the issue above by adding all validation conditions in the click event of my submit button using a switch statement instead of if. The break in the cases prevents the next field from being validated until the previous has passed its own validation - that means one alert at a time instead.var canSubmit = truevar myDoc = event.target;var mail_message = "Insert Default Message Text Here"var mail_subject = "E-mail Subject Here"//begin validatio...

Views

438

Likes

0

Replies

0
How to stop validation?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Hi everyone,I have a form with custom validation. If the user checks a box a subform becomes visible. Only when that subform is visible a couple of its fields should be treated a required. I was able to achieve that with the script below except that all validation is triggered for that subform at the same time. I would prefer one error at a time. So if vendor1 is null the prompt alerts the user, highlights and focus on that field and no other required alerts should come up. How do I stop the val...

Views

976

Likes

0

Replies

1
Re: Custom Alerts
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Kyle, Thanks for the tip. I researched the "mandatory" property and it has a companion propery called "mandatoryMessage". So now the script is:if (comparativeBids.presence == "visible") { this.mandatory = "error"; this.mandatoryMessage = "Please enter a vendor name on line 1 of the Comparative Analysis section."; }else { this.mandatory = "disabled" }With just one (customizable) alert to the user

Views

458

Likes

0

Replies

0
Re: Custom Alerts
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
No change. The form still alerts the user twice (once with my custom messageBox and second with Adobe's default for that error).

Views

461

Likes

0

Replies

0
Custom Alerts
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Hi There,I have a script that checks if a subform is visible. If it is visible then a text field becomes required. That part works fine now. When prompting the user I want a custom message to be displayed - something user friendly not a list of field names. The default error message associated with the nullTest property says "vendor1 is required" - that is not good enough.So I added a line to customize that alert. Now I am getting both alerts on my test. First my custom alert (script below) and ...

Views

1.5K

Likes

0

Replies

4
Re: JavaScript Sum Help
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Thanks. The conclusion of my form was that the sum line + the show/hide condition don't work when assigned to the same field. So I assigned the condition whyisthisme to an invisible text field and now all works fine. Thanks for the help.

Views

492

Likes

0

Replies

0
JavaScript Sum Help
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Hi Folks,I have a LiveCycle purchase request form that calculates a grand total. If that grand total is equal to or greater than $1,000.00 the subform "comparativeBids" should be made visible. The calculation works fine in FormCalc but not in JavaScript. Can someone help me figure how to make the JavaScript calculation work? I am not familiar with FormCalc enough to write conditional statements using that language but I am open to using it is someone can provide the script.Anyway, here is my Jav...

Views

1.2K

Likes

0

Replies

2
Re: Checkbox alignment in table cells
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
I tried the above and ended up with cells that were at least 1/2in tall if I wished the check box to be vertically centered as well, so instead:Converted the table cells directly to check boxesLayout > Caption > Position > Right (I am guessing "Left" would work too)Deleted the Caption text (Object > Cell > Caption)Adjusted the Reserve value till the checkbox was centered (in my case 0.01in) (Object > Cell > Caption)Changed the cell height to a comfortable 0.25in (Layout > Size and Position) Pic ...

Views

2.1K

Likes

0

Replies

2
Re: Is Page Object Required?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
To clarify, my form's hiearchy is what you see on the screen below. There is a master, with header/footer and other page design elements. Then all the items with page icons below the master are actually flowed subforms, except for "SignaturePage" which is a Page object because we want that section to always start at a new page. Does it matter that those subforms (introduction; generalInfo, jobRequirements, etc.) are not nested in a Page object? On my end (preview in Designer and test in Reader X...

Views

424

Likes

0

Replies

0
Is Page Object Required?
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
Newbie question... Is the page object required? I am developing a multipage form with flowable layout. It seems the form works the same way with or without Page objects which makes me wonder, besides forcing a page break, is there any other reason to use Page objects in a dynamic form?Thanks!

Views

1.1K

Likes

0

Replies

3
Word (version XP or onwards) could not be found on the machine
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
I am currently test driving LiveCycle Designer ES3. When I try to convert a Word document I get the error message "Word (version XP or onwards) could not be found on the machine".- I have tried the registry hack posted by ES2 users on another forum. It did not work.- I have tried converting both *.doc and *.docx; got the same error on both formats.Is there a solution for ES3? We are considering buying the software but if we can't make it work with Word that would be a deal breaker.My system:- Wi...

Views

1.7K

Likes

0

Replies

0
Re: LifeCycle Designer ES2 - Does Not Recognize MS Word 2010 on PC
Avatar

ArrueiraVermelh

ArrueiraVermelh
- Adobe LiveCycle
I am on Windows 7 64bit, running Office 2010 64bit and have LiveCycle ES3. The registry edit did not work for me . Any suggestions? Just in case it's relevant I have Acrobat XI installed via Creative Cloud. Thanks in advance!

Views

1.5K

Likes

0

Replies

0
Likes from