Conditional Formatting to Fill a text box color IF a different box has text
I want to make a box colored yellow to highlight a signature on a page if there is text in another box on that same page.
I have put this code in the Text Field Properties > Validate > Run custom validation script
if (event.value= (this.getField("Text_Box_With_Text_if").valueAsString=="")) event.target.fillColor = color.yellow;
else event.target.fillColor = color.transparent;
I have the Border color and fill color set to "No Color" in the appearance tab.
What is going wrong?
Thanks in advance.
