since ‎02-07-2009
‎10-12-2019
Dave_Erho
Level 1
Re: Allowing field entry for either numbers only or a specific phrase
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
The change below almost works perfectly. However, since this field is a drop-down, I need it to also allow pressing the down arrow and the enter key to select the "Not Available" option if they don't want to use the mouse. Anyone have the syntax for that?if (this.rawValue.match(/\s+Not Available\s+/g)){} else if (xfa.event.newText.match(/[^0-9]/)){xfa.event.change = "";}

Views

484

Likes

0

Replies

0
Allowing field entry for either numbers only or a specific phrase
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I have a field on a form that needs to only accept numbers (with no dashes, spaces, commas, etc.) OR accept a specific phrase. In this case "Not Available".In most cases the user with enter a number. But there are instances where the number is not known, so we want to allow the phrase Not Available to be entered into that field.Right now, I have this code in the change eventif (xfa.event.newText.match(/[^0-9]/ || /\sNot Available\s/)) {xfa.event.change = "";}It works for only allowing numbers to...

Views

545

Likes

0

Replies

1
Can you remove attachments from a form when submitting the pdf via submit button?
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I have a submit button built into my form to lock all fields and email the completed form to a certain address. The form has four attachments included with it that serve as help documents for customers and those filling in the information.I would like to strip the attachments from the main file when the form is submitted to the office.Is this possible? If so, how can I do it?I'm using LIveCycle Designer 8Thanks

Views

427

Likes

0

Replies

1
Re: Sorting XML data linked to a drop-down list
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
My data is coming from an excel spreadsheet that is updated about once a month. I am creating an XML file from that data and then importing into my pdf. I haven't tried using an XSLT stylesheet to transform it. I'm not familiar with them, so I will have to look into it.This is the first time that I have pulled in outside data, so I'm trying to learn quickly.

Views

526

Likes

0

Replies

0
Re: Sorting XML data linked to a drop-down list
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I clicked on "List Items" in the Object/Cell tab and made a data connection to an XML file. There are about 600 items in the data source, so I didn't want to type them all in.

Views

513

Likes

0

Replies

0
Sorting XML data linked to a drop-down list
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I am looking for a javascript code that I can use to sort XML data linked to a drop-down list when the list is accessed by mouse-down. For reasons that I can't get into here, I cannot sort the xml before loading it into the form.I am using LiveCycle Designer ES 8.2.1

Views

1.6K

Likes

0

Replies

5
converting validation pattern to script syntax and running check
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Hi,I am working on a form where I want to have users enter info in a field called "ID Number" according to a strict pattern. In this case AAA9999-A.However, if the pattern is not met, I want the field to reset and the focus to be put back into the field. In other words, I don't want the user to move on in the form unless they have entered the value in the field according to the pattern.It looks like using a validation pattern does not have the capability of clearing the field input and setting t...

Views

512

Likes

0

Replies

1
Re: loop not working for check of duplicate values in a repeating table
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Hi Bruce,I posted it on Google docs and sent you a message with the link.ThanksDave

Views

483

Likes

0

Replies

0
Re: Checkbox check style issue
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Radzmar. Thanks. That's what I ended up doing. Copying a previous check box that worked in the same form and then changing the name, etc was what I ended up doing. The styles were fine working with a new form, but for some reason it gave me problems adding a checkbox to a pre-existing form. ???

Views

400

Likes

0

Replies

0
loop not working for check of duplicate values in a repeating table
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I have a form that is used for marking down problem items, describing the problems and assigning a value to the specified item. In some cases the problems belong to the same class. When they do, the value associated with the problem should only be marked once. If another problem in the same class is documented the value should not be recorded the second time. I have a variable that is called based on a switch statement in the exit event of the field that records the problem item number. The scri...

Views

988

Likes

0

Replies

2
Checkbox check style issue
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Has anyone run into a glitch where a newly added checkbox in a form will only display an X under the default setting, but won't allow a different style of mark, such as a check mark? I need to use the check mark style to be consistent with the other check boxes on my form (which still allow the check marks without a problem). Any ideas?

Views

926

Likes

0

Replies

2
Re: Script to set presence of a subform based on a field's value not working
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Doesn't work consistently.Here is the file modified with your script:https://www.box.com/s/09dzlu2kmiv7uziqef7jThe way it should work is that, when you enter in a code, such as 1, a type appears on the right hand side- either C or S. A C is an automatic Fail and should appear in the pass/fail box after entering in the 1 under the code column. After the Fail appears, the script should be called and the subform should appear.Then, if you were to change the 1 under the code to a 6, the resulting ty...

Views

455

Likes

0

Replies

0
Re: Script to set presence of a subform based on a field's value not working
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I tried it again using form1, but it didn't work.When using the form, enter in a "1" into the first box under "Code." This will turn the Pass/Fail result to "Fail". This should prompt the subform to appear, but it doesn't.

Views

457

Likes

0

Replies

0
Re: Script to set presence of a subform based on a field's value not working
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Here is a link to the file:https://www.box.com/s/09dzlu2kmiv7uziqef7j

Views

462

Likes

0

Replies

0
Script to set presence of a subform based on a field's value not working
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I am setting up a type of evaluation form that needs to have a subform appear at the bottom whenever the evaluation fails. The subform contains text that will describe what the person will need to do for failing the evaluation.Right now, I have the form set up to run a script whenever the "pass/fail" box changes. The script looks for the value of the pass/fail box and sets the presence of the end subform to visible if the pass/fail box text says "Fail".For some reason though, the script is not r...

Views

2.2K

Likes

0

Replies

6
Re: My table cell won't break when handling large amount of text- Ideas?
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I can get this to break without special script by scrapping the table format and arranging subforms and textfields to look like a table.Please see my example:http://www.box.net/shared/xmpuis4neafuf6cfd1smHowever, because of some other formatting issues that arise when I scrap the table format, I'm trying to avoid using this approach.Thanks,Dave

Views

468

Likes

0

Replies

0
Re: Adjust Drop Down List size
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I don't think you can modify how the drop-down displays, but I came up with something that may work for you, though I don't know if it is best practice.You could use popUpMenu in a text field instead of using a drop-down object.I got the idea looking at an example on assure dynamic here:http://www.assuredynamics.com/wp-content/uploads/2011/02/Assure-Dynamics-Index-variable-number-of-pages.pdfI came up with a different version that sets the raw value of the field based on the selection in the pop...

Views

374

Like

1

Replies

0
Re: My table cell won't break when handling large amount of text- Ideas?
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Ok. Here is a link to my file at box.net:http://www.box.net/shared/zzr7uisftaq1tgle34rp (is there a better way to share a file? i don't care for box.net)When you open the file, scroll to the second page to see the text field with the large amount of data.Thanks.

Views

468

Likes

0

Replies

0
My table cell won't break when handling large amount of text- Ideas?
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I'm hoping that there is a quick solution for this problem that I'm not seeing.I have a form with a table object where one of the table body rows contains a text field that needs to break across a page. Right now it works as long as the text field doesn't get too large. However, on rare occassions the text field needs to store 2-3 pages worth of data. When I test this out, the field won't break from the second to third page.I can't show you the actual form, but I created an example form that giv...

Views

1.2K

Likes

0

Replies

3
Re: Presence of subform depends on number of pages
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Hi Niall,I can make a second master page, but what I don't understand is how to make that "Total" box appear on the first page only IF the form ends up having more than one page.Dave

Views

465

Likes

0

Replies

0
Presence of subform depends on number of pages
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
I am putting together a form that starts as one page, but can expand to multiple pages based on user input. I am trying to figure out the best way to make a certain subform appear on the first page of the form ONLY when the form expands to multipe pages.Anyone have a good idea?A little more detail: this form has a "Totals" field that is calculated based on various data that the users input. For company reasons, this field has to be at the end of the form. This is fine when the form info is all c...

Views

928

Likes

0

Replies

3
Re: Trying to use single quotation in display pattern for printing
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Thanks for the help, but it didn't quite work.However, it was very helpful in that I used a similar approach to get what I needed.Basically I used Alt + 0180 to get this mark: ´I should have thought of it earlier because I had to use Alt + 0176 to get the degree symbol in there.Anyway, thanks for your help!Dave

Views

504

Likes

0

Replies

0
Trying to use single quotation in display pattern for printing
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Hi all,I'm trying to use the pattern feature of livecycle to help my users with entering in GPS coordinates.I would like them to only have to enter numbers and decimals and have the N, W, ° and ' appear automatically. I have had success getting the first three to appear, but can't figure out how to include the single quotation for a minute mark since you have to use single quotations to specify the stuff you want to appear ('N', 'W', '°', etc.)Does anyone know if it is possible to get the ' to a...

Views

2.1K

Likes

0

Replies

6
Re: Does anyone know if it's possible to have a conditional statement in the click event of a delete row button for a repeating table?
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Hi Bruce,I'm getting closer. I actually tried a variety of expressions, such as "== null" and yours, but the problem persists.I am settling on the following, but there is a hangup related to the field that is being looked at for the condition that I will explain in a minute. Here's the script:if(ViolationsTable.ViolCorrSection.ViolationsText.DebitVal.isNull || ViolationsTable.ViolCorrSection.ViolationsText.DebitVal.rawValue.length == 0){ViolationsTable.ViolCorrSection.instanceManager.removeInsta...

Views

678

Likes

0

Replies

0
Does anyone know if it's possible to have a conditional statement in the click event of a delete row button for a repeating table?
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Hi,I am hoping to have a message box appear when I delete a row of a repeating table (remove instance in the click event of a remove button in that row) ONLY when a certain field of that row is has an existing value. Looking at it the other way, I don't want the message box to appear if the field is empty and the user is just removing extra lines for a cleaner look. In this case, the field being checked for a value is called "DebitVal".Any ideas?Here is the script that I am trying to use in the ...

Views

2.8K

Likes

0

Replies

4
Re: Conditional calculation not working with repeating table
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
All,Niall has answered my initial question offline (and a few others related to my form).If it is helpful to anyone else what that solution was, let me know and I'll post the gist of it when I get time.Thanks again Niall!Dave

Views

546

Likes

0

Replies

0
Re: Conditional calculation not working with repeating table
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Hi Niall,I sure appreciate your help with this.I plugged in the code as you wrote it, but it doesn't appear to be working. I tried selecting items w/ point values, but the debit total sum didn't calculate. I also tried selecting the item with the "C" and the debit total sum remained "0" instead of going to blank.Ideas?Dave

Views

548

Likes

0

Replies

0
Re: Formcalc to JavaScript
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Hi,Any chance that you could post this example pdf again?I need to turn my FormCalc sum for a repeatable table into a javascript sum express because of some additional conditions that I had to include in the calculate field.Thanks,Dave

Views

377

Likes

0

Replies

0
Re: Conditional calculation not working with repeating table
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Niall,Would you mind helping me out a little more? My initial calculation was in FormCalc and I'm not familiar with doing a sum calculation for a repeating table in JavaScript. How would you convert my previous calc script for a repeating table sum to JavaScript.I have used the script you gave, but am unsure if it is working because my Total Sum field is set up to either subtract the total debits from 100 or enter a C depending on whether a sum calculation was done or a "" value was entered.Dave

Views

543

Likes

0

Replies

0
Conditional calculation not working with repeating table
Avatar

Dave_Erho

Dave_Erho
- Adobe LiveCycle
Hi all,I have a repeating table that can grow/shrink depending on how many entries a person needs. Each entry gets a value inputed in a "score" field. If all the scores are numbers, a simple sum of all the fields is calculated to get a number for total debit points. However, there are cases where an entry can be a "C", meaning that the score is Critical. In this case, the total debits sum should be blank or null.The problem I run into is that the calculation will only work if the C "score" is on...

Views

2.5K

Likes

0

Replies

7
Likes given to
Likes from