Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Ghosted Gray Italic Help Text


Level 9

I create forms with gray (ghosted) italic help text telling the user additional information. When the text field is entered, the help text disappears and the user can enter normal black text in its place. This works fine for plain text. Now I am trying to do the same thing with rich text. At times, the caption also turns to gray italic text like the value and I can't find what is causing this problem. The caption should never be gray italics but rather should always be blck normal posture text. Here's the script:

LPA.Q1.AuditIssueInfo.HowEscaped::initialize - (JavaScript, client)
//When wanting the field to use Rich Text: disappearing help text:
this.format.picture.value = "null{'" + this.assist.toolTip.value + "'}";

LPA.Q1.AuditIssueInfo.HowEscaped::enter - (JavaScript, client)
this.fontColor = "0,0,0";
this.font.posture = "normal";
if (this.rawValue === this.assist.toolTip.value) {
          this.rawValue = "";

LPA.Q1.AuditIssueInfo.HowEscaped::exit - (JavaScript, client)
if (this.isNull)
this.fontColor = "153,153,153";
this.font.posture = "italic";
this.caption.font.fill.color.value = "0,0,0";
this.caption.font.posture = "normal";
if (this.rawValue === null) {
          this.rawValue = this.assist.toolTip.value;

LPA.Q1.AuditIssueInfo.HowEscaped::prePrint - (JavaScript, client)
this.format.picture.value = "";

LPA.Q1.AuditIssueInfo.HowEscaped::postPrint - (JavaScript, client)
this.format.picture.value = "null{'" + this.assist.toolTip.value + "'}";

Can anyone see what is causing the caption to change too?

Thank you

0 Replies