Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Results from Dialog 'undefined'

Community Beginner ,
Feb 12, 2015 Feb 12, 2015

Hi all,

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..

Thank you

TOPICS
Scripting
424
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 12, 2015 Feb 12, 2015

Hi Lucas,

You can either use the advance editor and use the code highlight option or put some http download link.

Loic

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 12, 2015 Feb 12, 2015

Thanks, I've tried pasting in but got an error - have a link below though showing code if this helps anyone;

http://www.critterprint.co.uk/Cheese_Rollout_Proofer_2.0.jsx

The form I've added has fields 'Client' 'Project Name' 'Traveller Number' 'Proof Number' 'Printer' 'Substrate' 'Finishing' 'Notes'

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 13, 2015 Feb 13, 2015
LATEST

Hi,

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;

HTH

Loic

http://www.ozalto.com

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines