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
BedrockMission!

Learn More

View all

Sign in to view all badges

Font Change

Avatar

Avatar
Boost 1
Level 1
sivamaddy
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
sivamaddy
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
sivamaddy
Level 1

15-09-2016

Hi All,

I have design a one page form. All the texts (label, text and dropdown) in blue font. However I need to change the font color based on some selection.

Is it possible to change the entire font color and font type dynamically.

Thanks

sivamaddy

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Boost 1
Level 1
MAPIZ
Level 1

Like

1 like

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
MAPIZ
Level 1

Like

1 like

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
MAPIZ
Level 1

16-09-2016

ADD THIS SCRIPT FOR THE COLOR:

if(TextField1.rawValue = "EXAMPLE")

{

  TextField1.font.fill.color.value = "233,24,0";

}

else

{

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

}

THIS FOR THE WEIGHT:

if (TextField1.rawValue = "EXAMPLE")

{

     TextField1.font.weight = "bold";

}

else

{

     TextField1.font.weight ="normal";

}

OR THIS FOR THE POSTURE:

if (TextField1.rawValue = "EXAMPLE")

{

     TextField1.font.posture = "italic";

}

else

{

     TextField1.font.posture = "normal";

}