Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

JavaScript sample: Alternating colours on a repearting subform

Avatar

Level 2

The LiveCycle Designer ES2 Scripting Reference contains the following Javascript sample on p 393:

I placed this in the calculate event of a repeating subform of a Designer 8.2 form, and got some very strange results. The colour alternated as promised; however, every field in the subform became disabled. This state of affairs remained even after I removed the code completely, which is kind of scary. I had to restore the form from a previously saved version. (Lucky for me.)

Does everyone else experience this same problem with this little bit of code (be sure to back up your form before trying it!)? Is this happening because I am using it in a version 8.2 LiveCycle form when the Reference is for LiveCycle 9? Can anyone suggest a way to make this work in 8.2?

Any help you can provide for this would be appreciated. Thanks,

--Bruce

0 Replies