Can anyone help with my script?
I've taken InDesigns built-in 'Image Catalog' script and made a few amends to suit my companies way of working. However on line 80 onwards I've added a few extra fields + a dropdown to the dialog box.
Can anyone tell why it shows a 'undefined' error when running the script, even when I've clearly entered text into the boxes and chosen a dropdown option?
Its probably something simple but I'm new to scripting and pulling my hair out!
I have the script as a js. file, not sure how to paste the script in here..
You can either use the advance editor and use the code highlight option or put some http download link.
Thanks, I've tried pasting in but got an error - have a link below though showing code if this helps anyone;
The form I've added has fields 'Client' 'Project Name' 'Traveller Number' 'Proof Number' 'Printer' 'Substrate' 'Finishing' 'Notes'
It seems you are trying to call a non valid property :
var myClientName = field1.editValue;
To access the text value, you have to use
var myClientName = field1.editContents;