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.

Text field default value, font size

Avatar

Level 5

I would like to change the default value of a text field to be at a 6pt font size. The typed text can be at the menu selected font tab size of 10pt. Is there a way to do this in the xml? I've tried

<value>

<text>Last Name, First Name MI</text>

</value>

inserting font size.

<value>

<font size="6pt">

<text>Last Name, First Name MI</text>

</font>

</value>

it doesn't work however. Any suggestions? Thanks.

1 Reply

Avatar

Level 5

You could change the font size an the font.

But changes in the XML-source is not so good. Better is the scripteditor (you will find them under "window" | Scripteditor

For example when you click a checkbox.

Copy the following script in the change-event of the checkbox

if(this.rawValue == 1)

{

    ObjectName.font.typeface = "Times New Roman";

    ObjectName.font.size = "6pt";

}else

{

    ObjectName.font.typeface = "Courier";

    ObjectName.font.size = "13pt";

}

Hope it's helpull?

Mandy