Using Acrobat Pro X.
I have a load of text on a form that I want to obscure under certain circumstances and reveal on others.
I have tried using a text box and putting a script into the custom format field to switch between white and transparent fill colors, but it is not working reliably.
In the meantime, I have a hack with a gazillion overlapping check boxes .... but there must be a better way. I cannot edit the underlying text for various reasons.
Thanks in advance for any help.
I sometimes use a button for this, the same idea as you used a text field for. When you ay this was unreliable, can you provide more details? Under what conditions do you want to show/hide the text?
You can use multiple read-only buttons that all have the same name, and can show/hide them all with a single statement by controlling their visibility:
getField("cover").display = bYourVar ? display.visible : display.hidden;
Where "cover" is the name of the buttons and bYourVar is a variable that is true when you want the text to be hidden and false when you want the text to be shown.