Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Change the lineThrough property of just the value

Avatar

Level 2

I have a form and I want someone to click a button and have the field value to have a strike through only. I can do it on the caption and the value or just the caption but I cannot find how to do it on just the value. I have tried Textfield1.font.lineThrough = "2"

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

I have come across this before. Our workaround was to turn on the strike through and then turn it off specifically for the caption.

Two lines instead of one:

TextField1.font.lineThrough = "2";

TextField1.caption.font.lineThrough = "0";

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

I have come across this before. Our workaround was to turn on the strike through and then turn it off specifically for the caption.

Two lines instead of one:

TextField1.font.lineThrough = "2";

TextField1.caption.font.lineThrough = "0";

Hope that helps,

Niall

Avatar

Level 2

Thank you. I sort of came to that conclusion as well. I thought maybe I was just missing something. I guess not. Thanks for the quick reply.