Changing Text Box Border Color to transparent once text is entered
Hello,
I am going nuts here. I have a form which has a BUNCH of text fields in it. All of my other scripts are working except this one. I am aware that there is a mandatory field option in Adobe BUT I cannot seem to find any settings to turn off the red border once the field has had a value entered into it. The border color simply will not change from the default 'red' even when a vlaue has been entered.
So I thought a calc script might do the trick:
if (this.getField("LastName").value>="")
{
event.target.strokeColor = color.transparent;
}
else
{
if (this.getField("LastName").value="")
{
event.target.strokeColor = color.red;
}
}
The goal is seemingly simple here....
IF textbox has no entry border = Red
else
No border as the textbox has a value in it now.
Any help is greatly appreciated.
On a side note I am shocked that this question has not been asked before. While there are similar topics when I click into them they always turn out to be a similar but unrelated topic.
Many thanks for any assistance!
Rich
