I am using InDesign and have textboxes placed that require being solid or empty based on the data value from each record. For example if the field value is greater than 10, I need to make the texbox solid, if less than that It needs to be invisible, or blank when printed.
The data file is a CSV, and the textboxes are setup. I cannot figure out how to script the events that will trigger the textbox to change accordingly. I am familiar with Access and VBA, but in this instance I must work with an existing PDF so Access is out.
Could someone please show me how to structure the code to make this work, or at least get me started in the right direction?
Are you just concerned about what gets printed, or what is displayed on screen?
The printed documents. If you could point me in the right direction I'd appreciate any help. Whatever method will get this project accomplished.
You can use the following custom validate script in a text field to control the printability of the field based on the value:
// Custom validate script for text field
event.target.display = +event.value > 10 ? display.visible : display.noPrint;
This won't affect the onscreen visibility of the field, just what gets printed.