Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

JS Help

$
0
0

With this script, I am trying to make the statement... IF FamilyMember=3 then Family1 is not diplayed, else Family1 is displayed.  However the following script does not work

 

 

 

var FamilyMemeber=this.getField("SelectFamily1")

if(FamilyMember==3)

 

var Family1 = ""

 

else

 

 

var Family1 = this.getField("SelectFamily1").value

+ " " +

this.getField("FirstName1").value

+ " " +

this.getField

("LastName1").value

+ " " +

"(Born in"

+ " " +

this.getField

("COB1").value

+ ". " +

this.getField

("Status1").value

+ " DOB: " +

this.getField

("DOB1").value

+ "). ";

 

var Family2 = this.getField("SelectFamily2").value

+ " " +

this.getField("FirstName2").value

+ " " +

this.getField

("LastName2").value

+ " " +

"(Born in"

+ " " +

this.getField

("COB2").value

+ ". " +

this.getField

("Status2").value

+ " DOB: " +

this.getField

("DOB2").value

+ "). ";

 

event.value = Family1 + Family2;


Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>