since ‎02-02-2014
‎10-12-2019
Paul_Dokken
Level 1
newText.match not working properly
Avatar

Paul_Dokken

Paul_Dokken
- Adobe LiveCycle
I have a dynamic form that uses extensive Javascript. It works great when I open it in Adobe Reader 11 but when I open it with Adobe Reader 10.01 the following code in a text field change event does not execute correctly:if (xfa.event.newText.match(/[^0-9-:;,]/)) xfa.event.change = "";else if (xfa.event.newText.length > 0) xfa.resolveNode("this.ui.#textEdit.border.fill.color").value = "255,255,255";any ideas?I have also noticed that the toUpperCase() function is not working either in version 10....

Views

295

Likes

0

Replies

0
Re: Determine if end date is after start date
Avatar

Paul_Dokken

Paul_Dokken
- Adobe LiveCycle
Unfortunately I am using Javascript already. I don't think you can mix FormCalc and JS.

Views

614

Likes

0

Replies

0
Re: Determine if end date is after start date
Avatar

Paul_Dokken

Paul_Dokken
- Adobe LiveCycle
Thank you so much for the answer.  It worked!

Views

510

Likes

0

Replies

0
Determine if end date is after start date
Avatar

Paul_Dokken

Paul_Dokken
- Adobe LiveCycle
I have 2 date fields on a form. When I click the submit button I am trying to make sure the end date is after the start date. Here is the code I am using: var sDate = Date.parse(BackgroundInformation.Background.CheckingDateStart.rawValue); var eDate = Date.parse(BackgroundInformation.Background.CheckingDateEnd.rawValue); xfa.host.messageBox("Start Date:" + BackgroundInformation.Background.CheckingDateStart.rawValue); xfa.host.messageBox("eDate:"+eDate+" sDate:"+sDate); if(sDate > eDate){ valid =...

Views

1.8K

Like

1

Replies

5
Re: Events script not showing up in designer
Avatar

Paul_Dokken

Paul_Dokken
- Adobe LiveCycle
Bruce,Thank you so much for replying!  This solved my problem.Paul

Views

407

Likes

0

Replies

0
Events script not showing up in designer
Avatar

Paul_Dokken

Paul_Dokken
- Adobe LiveCycle
I am working on a form using ES4 version 11 and when I try to view the Javascript code for the events nothing shows up. I also cannot preview the form using the preview tab. It just hangs. When I quit and restart the form sometimes the script code shows up. Any idas what may be causing this?

Views

697

Likes

2

Replies

2
Re: How can I do my own validation of a form
Avatar

Paul_Dokken

Paul_Dokken
- Adobe LiveCycle
This example is helpful. I am just missing how to do the validation. Would I run this code from my submit button on the form and cancel the submit if the anything is invalid? How would I do this?Thanks,Paul

Views

456

Likes

0

Replies

0
How can I do my own validation of a form
Avatar

Paul_Dokken

Paul_Dokken
- Adobe LiveCycle
I have a LiveCycle form with 3 tables that the number of rows can vary. I would like to validate the table by saying any row with at least one column value in it must have all columns filled. Any row with all blank columns can be considered valid.How would I do this?Thanks,Paul

Views

1.5K

Likes

0

Replies

3
Likes given to
Likes from