I'm using a static form.
On initialize event on Both Server and Client.
The field initializing the event is called fldBallotGroupCount
Code:
if(this.rawValue == 1){
BallotOrder.fldBoPvbmCount[0].presence = "hidden";
}
else if(this.rawValue == 2){
BallotOrder.fldBoPvbmCount[0].presence = "visible";
}
What this script is suppose to do is hide the field fldBoPvbmCount[0] if fldBallotGroupCount equals 1 when the pdf is created. In this example the code does not work because I don't think I'm calling the index of this field correctly. I have 6 total fields with this name indexed 0:5. If I change the field name to something unique then the code works. Example:
if(this.rawValue == 1){
BallotOrder.fldBoPvbmCountUnique.presence = "hidden";
}
else if(this.rawValue == 2){
BallotOrder.fldBoPvbmCountUnique.presence = "visible";
}
What is the proper way to index the field, or is this not possible?
Thanks.
you have several options to do this.
1. The resolveNode method with and a loop.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs