I've looked all afternoon to try and find this one. Basically, I want get the name of the current text field and change the display value to noPrint if the text field value is "--". I'm running this as a validation script in a PDF. Any help is much appreciated!
if(event.value == '--') 
{
    event.target.name.display = event.target.name.display.noPrint;
} else 
{
    event.target.name.display = event.target.name.display.visible;
} 
 
     
    