since ‎15-03-2012
‎10-12-2019
tygerfarr
Level 1
Re: if/else statement help
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
AgeVerify has a script that calcualtes the actual age. it is hidden in the form and only there for calculation purposes for this script. So i suppose technically, it does contain an actual age. eg. 31

Views

86

Likes

0

Replies

0
Re: if/else statement help
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
When i put this script in, and put like 2 weeks ago as the DOB, i still can't check the dental box unless i have a valid SSN. If they are less than one year, we won't need a SSN.

Views

81

Likes

0

Replies

0
if/else statement help
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
This is the script that i have, and it works, I just need to add something to it.if (this.rawValue == "1" && SSN.isNull) {SSN.mandatory = "error";app.alert ("Dependents 1 year and older must have a valid SSN to be eligible for Dental coverage.");this.rawValue == 0;}else if (this.rawValue == 1){SSN.mandatory = "disabled";}I need to make this also verify that AgeVerify field is greater than 1. if not return an unchecked box and have pop up message.in other words, the person has to be 1 year old an...

Views

811

Likes

0

Replies

4
Re: if/else with verify
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
This script does what i want, i just need to add the verify "age" field thing.

Views

62

Likes

0

Replies

0
Re: mandatory fields not in red...
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
if (("DepYes").rawValue == "1"){ Hidebox.IfYes.presence = "visible"; Hidebox.Policy.presence = "visible"; Hidebox.TypeCov.presence = "visible"; Hidebox.CovPerson.presence = "visible"; Hidebox.IfYes.mandatory = "error"; Hidebox.Policy.mandatory = "error"; Hidebox.TypeCov.mandatory = "error"; Hidebox.CovPerson.mandatory = "error"; }else (("DepNo").rawValue == "2"){ Hidebox.IfYes.mandatory = "disabled"; Hidebox.Policy.mandatory = "disabled"; Hidebox.TypeCov.mandatory = "disabled"; Hidebox.CovPerson...

Views

439

Likes

0

Replies

1
if/else with verify
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
This is the script i have in the Change event of a checkbox:if (xfa.resolveNode("this").rawValue == "1" && SSN.isNull){ SSN.mandatory = "error"; app.alert("Please fill in the Dependent SSN portion of this form."); }else { SSN.mandatory = "disabled"; }I also need this to verify that the "age" field is >= 1, if not return a message.

Views

518

Likes

0

Replies

3
Re: mandatory fields not in red...
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
As i said before. If i put Hidebox.ifYes.mandatory = "error";then Hidebox.IfYes.presence = "visible"; this doesn't happen. Hidebox.IfYes.presence = "visible"; this works (making the field visible) with Hidebox.ifYes.mandatory = "enabled"; Hidebox.IfYes.presence = "visible"; this does not work (making the field visible) with Hidebox.ifYes.mandatory = "error"; does that make any sense?

Views

439

Likes

0

Replies

3
Re: mandatory fields not in red...
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
If i put "error" in, none of the fields become visible.Almost like it's not executing them in the order it should.

Views

439

Likes

0

Replies

5
mandatory fields not in red...
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
I am working with radio buttons in the Click event. This is my script:if (xfa.resolveNode("DepYes").rawValue == "1"){ Hidebox.IfYes.presence = "visible"; Hidebox.Policy.presence = "visible"; Hidebox.TypeCov.presence = "visible"; Hidebox.CovPerson.presence = "visible"; Hidebox.IfYes.mandatory = "enabled"; Hidebox.Policy.mandatory = "enabled"; Hidebox.TypeCov.mandatory = "enabled"; Hidebox.CovPerson.mandatory = "enabled";}else (xfa.resolveNode("DepNo").rawValue == "2"){ Hidebox.IfYes.presence = "h...

Views

1.5K

Likes

0

Replies

7
Re: if/else scripts
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
I am using it in the Change event of the checkbox. And that worked Perfect! I knew i was missing something small. what about the adding the =<1 ?

Views

78

Likes

0

Replies

0
if/else scripts
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
I am trying to make this where if this checkbox is checked then it checks to see if SSN has a correct number in it or it returns an error.This is what i have in there now.if (xfa.resolveNode("this").rawValue == "1"){ SSN.mandatory = "error"; app.alert("Please fill in the Dependent SSN portion of this form."); }else { SSN.mandatory = "disabled"; }This works all too well. if they do have a number in the field, it still gives the error. I need that not to happen.Also, I need another checkbox to do ...

Views

501

Likes

0

Replies

2
LiveCycle/Java Issues
Avatar

tygerfarr

tygerfarr
- Adobe LiveCycle
I am using Livecycle es2 and i don't know if i'm doing anything the right way. I am trying to make it where the end user puts in a date and it is automatically inserted into a letter. I have the following script in the exit event.var newText = form1.Letter.Text1.rawValue.replace ("[date]", this.editValue);form1.Letter.Text1.rawValue = newText;This makes it change, but only the first time. If they go back to change the date again, it won't change. I don't know if my script is wrong or if the exit...

Views

936

Likes

0

Replies

1