run a document level javascript function
I've defined a function thusly:
//-------------------------------------------------------------
//-----------------Do not edit the XML tags--------------------
//-------------------------------------------------------------
//<Document-Level>
//<ACRO_source>set_all_fields</ACRO_source>
//<ACRO_script>
/*********** belongs to: Document-Level:set_all_fields ***********/
function set_all_fields()
{
for(var n; n<n; n++) {
var fieldName = getNthFieldName(n);
var field = getField(fieldName);
console.println(fieldName);
switch(field.type) {
case 'text' :
field.fontFamily = 'Source Sans Pro';
field.fontSize = 9;
break;
case 'checkbox':
field.style = style.ch;
break;
default: console.println(field.type);
break;
}
}
}
How do I call this function from the debugger? All I get is undefined in the console, which lets me believe that the function could not be find
