These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

LiveCycle Tables

kerrykew
Registered: Nov 25 2008
Posts: 19
Answered

I am relatively new to Livecycle Designer and have been trying to add a feature to my form design with no luck. I was hoping someone could help. I have version 8.2.

I have cells set up as numeric fields. If a negative value is input into the cell, I would like the typeface to be bold, if zero or a positive value is input, I would like the value to be normal. Here is the code I have which is bits and pieces from researching the issue on this forum:

F.P1.Table1.Row[0].ReqIncrDecr::exit - (JavaScript, client)
if (this.rawValue < 0) {
F.P1.Table1.resolveNode(Row[0].ReqIncrDecr.font.typeface = "Arial-Bold");
}
else
F.P1.Table1.resolveNode(Row[0].ReqIncrDecr.font.typeface = "Arial");

The message I get is that Row[0] has no properties. I'm unsure of how to proceed. Any help will be very much appreciated.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

your script is basically correct, only your reffrence syntax to the form object "ReqIncrDecr" is nonsense.
You can access the typeface property much easier.

F.P1.Table1.Row[0].ReqIncrDecr::exit - (JavaScript, client)if (this.rawValue < 0){this.font.typeface = "Arial Black";}else{this.font.typeface = "Arial";}

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

kerrykew
Registered: Nov 25 2008
Posts: 19
Thank you so much for your assistance!! Have a wonderful holiday!