So here's what I'm trying to do in LifeCycle Designer 7. I have a dynamic form that I highlight the required fields by setting their fillColor to a blue upon form initialization. I then want the fields to go to transparent after data has been entered into them. But then if they delete that data, I want the color to return so they know they still need to put data in that field.
I've gotten some help from these forums, but I just can't seem to get it to where it needs to be. I can go between blue and white (w/ a visible border that I don't want), but I cannot get the fields to go completely transparent. If there was a way to automatically check the "Highlight Fields" and/or "Highlight Required Fields" boxes upon opening the pdf, I wouldn't have to do this at all.
So here is my code for the exit event of the fields:
if (this.rawValue == null || this.rawValue == "")
{
this.ui.oneOfChild.border.presence = "hidden";
this.fillColor = "153,255,255";
}
else
{
this.ui.oneOfChild.border.presence = "visible";
this.fillColor = "255,255,255";
}
If I take out the fill in the else statement, it always stays blue.
Any help would be greatly appreciated.
Thanks.