I'm trying to use the FormCalc Initialize event to set the strikeThrough format for one field if another field has any content. I tried a line from an answer by Stefan to a similar question by Angie Okamoto. This is is my code:
if (H11-Borrow-Deg.isNull | H11-Borrow-Deg == "") then
H11-LLAT-Deg.font.lineThrough = "1";
I keep getting this error: "syntax error near token "=" on line 2 column 32"
This is the code from the answer to Angies' question:
if ($ == "1") then // checked
TextField1.font.lineThrough = "1";
TextField1.font.fill.color.value = "255,0,0";
I've checked the field names and they are correct. What am I doing wrong?
Europe, Middle East and Africa