Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Text field question

Avatar

Former Community Member

Is it possible to create a dropdown menu besides a text field, that changes the font, color, style... of the text within that text field? I've found the option "rich text' already, but want to make it as simple as possible for an end user.

Rutger

1 Reply

Avatar

Level 2

You can use script similiar to this, on the change event of the dropdown.

 

if (xfa.event.newText == "red"){

   TextField1.fillColor= "255,0,0";

   TextField1.font.typeface="Comic Sans MS";

}