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

Indicating a change in default

Avatar

Level 2

I have a few text fields with default text within them. However I would like to be able to indicate that a user has changed this default when I or anyone else get back a filled out form. Is there a way to do this?

Thank you for your help in advance,

Roger.

2 Replies

Avatar

Level 10

Hi Roger,

You could, with script on the exit event of the textfield. If the default text was "This is the default text", then the following would change the colour of the text to red.

if (this.rawValue != "This is the default text")

{

     this.font.fill.color.value = "255,0,0";

}

else

{

     this.font.fill.color.value = "0,0,0";

}

You can use a similar exit script to change the caption colour or to make different changes.

Hope that helps,

Niall