# Changing a Dynamic Text's color after using IF statment

**URL:** <https://forum.kirupa.com/t/changing-a-dynamic-texts-color-after-using-if-statment/148507>\
**Category:** Uncategorized\
**Created:** [May 20, 2005, 1:58pm UTC](https://forum.kirupa.com/t/changing-a-dynamic-texts-color-after-using-if-statment/148507 "2005-05-20T13:58:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZaHeR1988](https://avatars.discourse-cdn.com/v4/letter/z/ebca7d/32.png) [@ZaHeR1988](https://forum.kirupa.com/u/ZaHeR1988)\
**Post date:** [May 20, 2005, 1:58pm UTC](https://forum.kirupa.com/t/changing-a-dynamic-texts-color-after-using-if-statment/148507/1 "2005-05-20T13:58:43Z")

</div>

Well here i will talk abit about changing a Dynamic Text’s color after using IF statment.

The script is this way:

if ( name\_field eq “”) {  
\_root.status\_field = " Please Type Your Name";  
//here is the problem, the text should be red color,  
}

so the text was in White color, but the message that will apear in the Status field should be red.  
but what script should be used.

so any help here will be appriciated.
