- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi Jonas,
Yes, this is possible. The script to change the colour of the textfield value is:
TextField1.font.fill.color.value = "R,G,B";
You can also change the colour of the caption:
TextField1.caption.font.fill.color.value = "R,G,B";
You would just need to wrap this in an if statement looking at the values of the other fields.
For example the following in the calculate event of the yes/no textfield:
if (textfield1.rawValue != null)
{
this.font.fill.color.value = "120,255,120";
this.rawValue = "Yes";
}
else if (textfield2.rawValue != null)
{
this.font.fill.color.value = "255,120,120";
this.rawValue = "No";
}
else
{
this.font.fill.color.value = "0,0,0";
this.rawValue = "";
}
Hope that helps,
Niall
Views
Replies
0 Likes
Total Likes