Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Referencing the value of a text field, not the caption

Avatar

Level 2

How do I reference the value contained within a text field to make the user-entered data bold/not bold without making the caption of the text field bold/not bold?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Two lines should do it. The first turns the caption and value bold, then the second changes the caption back to normal:

TextField1.font.weight = "bold";

TextField1.caption.font.weight = "normal";

Hope that helps,

Niall

Assure Dynamics

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

Two lines should do it. The first turns the caption and value bold, then the second changes the caption back to normal:

TextField1.font.weight = "bold";

TextField1.caption.font.weight = "normal";

Hope that helps,

Niall

Assure Dynamics