since ‎04-11-2010
‎10-12-2019
rickstsx04
Level 1
how to prevent to date from being earlier than from date
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I have 2 date fields. I need to prevent users from being able to enter a to date to be earlier than the from date. I tried the following code, but it did not work:var currentEpoch = TYBEGM.rawValue;var dueEpoch = TYENDM.rawValue;var logicTest = dueEpoch - currentEpoch;If (logicTest < 0){xfa.host.messageBox("Error! The Date Needed cannot be earlier than the current date.");TYENDM.rawValue = "";}I'm not sure what I'm missing.Any assistance is greatly appreciated!

Views

396

Likes

0

Replies

0
Re: include added rows to a click event
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I do have a background in JavaScript.I created the form with Livecycle Designer. My code looks like this:if(Subform4.Table1.Row2.CheckBox4.rawValue == 1 && Subform4.Table1.Row2.sharetenet1b.rawValue != null && Subform4.Table1.Row2.sharetenet1c.rawValue != null && Subform4.Table1.Row2.sharetenet1e.rawValue != null){app.launchURL('https://cform.mwg.nj.gov/default.aspx', true);}if(Subform4.Table1.Row2.CheckBox4.rawValue == 0 && Subform4.Table1.Row2.sharetenet1b.rawValue != null && Subform4.Table1.R...

Views

973

Likes

0

Replies

0
include added rows to a click event
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hello all,I'm having problem with my javascript for a click event to open a hyperlink.The hyperlink is to open only if row1 is filled in and a verification checkbox is selected. The table is dynamic allowing the user to add more rows as needed.My issue arises from the event not triggering for the added rows. Is there a code I can use in order to include the added rows in the click event?Thank you!

Views

2.1K

Likes

0

Replies

3
download pdf
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hello,I'm having a problem with PDFs downloading. I need to set up a pdf to download instead of opening in a browser window. How is this done?Thanks,

Views

521

Likes

0

Replies

1
Deleting all rows
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hello All,I have a question about removing rows. Is there a script that can remove all rows that are added?

Views

649

Likes

0

Replies

1
How do I make an e-mail address field required if a contact text field is filled in?
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hi All,I have a form that has a contact name field. I would like that the e-mail address field that corresponds with the contact field be set to required if the contact field is filled.Thanks for your help!Ricky

Views

451

Likes

0

Replies

0
pop up message with 'yes' or 'no' options
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hi All,I have a form I've been working on with 3 check boxes and 4 Subforms (A, B, C and D)When either the 1st or 2nd check boxes are checked, Subform D would have to be disabled/cleared.When the 3rd checkbox is selected, Subforms B and C would have to be disabled/cleared.I would like a pop-up message to display when one of the check boxes are selected. If the user selects 'yes' it can carry on with the action. If 'No' is selected, the corresponding check box should be unchecked and the action s...

Views

593

Likes

0

Replies

1
Re: field values
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Thank you Bruce this helped a lot!I added the following to the ValidationState event to clear the field if it fails validation:if (this.errorText) this.rawValue=nullThanks again,Ricky

Views

552

Likes

0

Replies

0
Re: field values
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hi Bruce,Still no luck,I tried putting this code in the validate event:{ var nLine37a = NJ1040.Page3.Table8.Row37a.Line37a.rawValue; var nLine38 = NJ1040.Page3.Table15.Row38.Line38.rawValue; if (nLine38.rawValue < nLine37a.rawValue) { //we're ok } else { alert("Line 38 cannot be greater than Line 37a"); return false; }}I only need to prevent the user from entering a value that is greater than the value entered in the previous line.Thanks for your input,Ricky

Views

558

Likes

0

Replies

0
Re: field values
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hello Bruce,My apologies, I will provide more information.I have a numeric field that I named line 37aThe next field, line 38 must be less than or equal to Line 37a.I tried the following calculation script, but it did not work:if (this.rawValue > Table8.Row37a.Line37a) { this.rawValue = null;}Thank you for your help,Ricky

Views

575

Likes

0

Replies

0
field values
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hello,How do I set a field to be required to be less than or equal to another field?

Views

1.2K

Likes

0

Replies

6
Re: Removing Rows
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hello Radzmar,Thank you for the sample pdf, it was a big help! I have another question. Is there a way to setFocus on the first field in the newly created row when the add button is clicked?Thanks,Ricky

Views

560

Likes

0

Replies

0
Removing Rows
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I have a question about deleting rows. I created a table that allow a user to add or delete rows. I added a delete button on the row that I would like to duplicate. This button cannot delete the row that it is contained in. Is there a way that the delete row button can delete the row that contains it as well?

Views

781

Likes

0

Replies

3
Dual Validation rules on one field
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hello all,I am trying to create a field that has multiple validation. I'm trying to create a field that would allow either an FIEN or a Social Security Number. I tried using the validation property for EIN and SS Number, but it did not work.Is there a way to create a script that would allow either an FIEN or SS #?Also, on required fields, how do you display a message, clear the field value and force focus on the field if it is invalid?Thank you!Rick

Views

414

Likes

0

Replies

0
Re: hyperlinks in a pop message
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
thank you for your input,I have another question, can I add line breaks in the text of the pop-up message?Thanks,Ricky

Views

733

Likes

0

Replies

0
hyperlinks in a pop message
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Is there a way to add a hyperlink within the message of a pop-up message?

Views

2.2K

Like

1

Replies

6
Mandatory Form Fields in LiveCycle
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I need to have 2 form fields where one or the other is mandatory. Is this possible?

Views

446

Likes

0

Replies

0
Re: Set text field to required if a checkbox is checked
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I tried adding this code to the click event in the checkbox. It works if I enter text in the required field. I then tab out of the field, tab back into the field and delete the text. Once I exit the field, now the error message shows up. It will only work this way. Am I missing something?Thanks for your help!

Views

3.1K

Likes

0

Replies

0
Re: Encode leading zeros in barcode
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I'm using PDF417. The barcode gets generated by a button. Would the code go on the button or on the field itself?Thanks for your help!

Views

598

Likes

0

Replies

0
Set text field to required if a checkbox is checked
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hi All,Is there a script that will make a text field required if a checkbox is checked?Thanks!!!!

Views

6.6K

Likes

0

Replies

6
Encode leading zeros in barcode
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Hi Everyone!I am having trouble with encoding leading zeros into a barcode. Is there a javascript to force a leading zero to be generated into a 2D barcode in LiveCycle?Thanks!!!!!!

Views

915

Likes

0

Replies

3
Re: prevent date in the past
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
Thank you for your help! Worked like a charm! Many thanks!

Views

562

Likes

0

Replies

0
prevent date in the past
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I am trying to prevent a date field from allowing a user to enter a date prior to the current date. How can this be done?

Views

760

Likes

0

Replies

4
Re: Calculating and Displaying Dates in Javascript
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I have a date field validated to display as MMYY. I want my date field to start at 0114. I need the end date to end at 1214. Is this possible? How would this be coded in java script or formcalc?

Views

764

Likes

0

Replies

0
Re: I don't want to allow a user to enter a date that is before January 2014
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I would be using JavaScript. I'm not sure how the getTime() function would work.

Views

630

Likes

0

Replies

0
Re: Limit Date Fields to Only Allow Past or Future Dates?
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I have a date field validated to only show the month and year (MMYY). How would I restrict a user from entered any date prior to 0114?

Views

904

Likes

0

Replies

0
I don't want to allow a user to enter a date that is before January 2014
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I don't want to allow a user to enter a date that is before January 2014. I want to restrict users from entering a date that is or prior to December 31, 2013 in a date field. Is this possible?

Views

831

Likes

0

Replies

3
message box that opens a link if you click ok, cancel button would not open the link
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
I'm having a problem with creating a message box that has an 'OK' and 'Cancel' button. I need the box to open a link if the 'OK' button is click, 'Cancel' would just have to close the message box without opening the link. Also, is there a way to format the message text?

Views

502

Likes

0

Replies

0
Re: How to force alpha or numeric inside text fields - LiveCycle Designer 9.0
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
this code won't work with my dynamic xml form. Is there a different code to make this work for dynamic xml forms? This works only if my form is saved as a static pdf.

Views

2.2K

Likes

0

Replies

0
how to set a text field to only allow alpha characters
Avatar

rickstsx04

rickstsx04
- Adobe LiveCycle
How do I set up a text field to only allow alpha characters? Is there a java script for this?

Views

611

Likes

0

Replies

2
Likes from