Skip navigation
gloscig
Currently Being Moderated

Problem setting the lineThrough for a field

May 6, 2012 5:02 PM

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";

endif

 

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";

 

else

 

I've checked the field names and they are correct.  What am I doing wrong?

 
Replies
  • George Johnson
    9,211 posts
    Aug 11, 2002
    Currently Being Moderated
    May 6, 2012 5:17 PM   in reply to gloscig

    You should post this in the LiveCycle Designer forum. This one is for forms created in Acrobat (acroforms).

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points