-
November 10th, 2014, 02:45 PM
#1
Syntax Error: missing : after property id
Im very new to this and I am attempting to auto-fill fields in Adobe Acrobat Pro by selecting an item from a drop down menu. I followed a how-to here https://acrobatusers.com/tutorials/change_another_field
I changed the values so it would work with my document but I keep getting "syntax error: missing: after property id" Again, I am new to this so I apologize for any procedural missteps.
// Place all pre-population data into a single data structure!
var POCO = { 5905-16:{ Model: "VMC 40", Serial: "9502956"}, 5905-13:{ Model: "VMC 40", Serial: "8803280"}, 5905-17 :{ Model: "4020", Serial: "8704778"}, 5905-30:{ Model: "6030", Serial: "12000101549"}, 5905-18 :{ Model: "8030", Serial: "9705016"}, 5905-22 :{ Model: "4020", Serial: "8803275"}, 5905-14 :{ Model: "VMC 40", Serial: "891819"}, 5905-15 :{ Model: "VMC 40", Serial: "9502954"}, 5905-23 :{ Model: "4020", Serial: "9910369"}, 5905-10 :{ Model: "VMC 40", Serial: "8803280"}, 5905-11 :{ Model: "4020", Serial: "8912817"}, 5905-20 :{ Model: "4020", Serial: "9801177"}, 5905-28 :{ Model: "VMC 40", Serial: "9101912"}, 5905-29 :{ Model: "4020", Serial: "9807346"}, 5905-12 :{ Model: "4020", Serial: "8912818"}, 5905-19 :{ Model: "6030", Serial: "9709227"}, 5905-24 :{ Model: "6030", Serial: "9910370"}, 5905-21 :{ Model: "4020", Serial: "9801176"}, 5905-34 :{ Model: "VMC 4020 HT", Serial: "32004066433"}, 5905-33 :{ Model: "VMC 4020 HT", Serial: "32004086742"}}; function SetFieldValues(cDeptName) {
// Populate fields with values from the POCO Object!
this.getField(“Model”).value = POCO[cDeptName].Model;
this.getField(“Serial”).value = POCO[cDeptName].Serial
}
-
November 11th, 2014, 10:08 AM
#2
Re: Syntax Error: missing : after property id
Is this javascript code? This is a java forum.
Norm
-
November 11th, 2014, 11:01 AM
#3
Re: Syntax Error: missing : after property id
Originally Posted by Norm
Is this javascript code? This is a java forum.
It is Java. Its inside the Adobe Acrobat program. Adobe uses Java for custom keystroke scripts.
-
November 11th, 2014, 11:06 AM
#4
Re: Syntax Error: missing : after property id
This part does not look like java:
Norm
-
November 11th, 2014, 03:04 PM
#5
Re: Syntax Error: missing : after property id
Originally Posted by Norm
This part does not look like java:
No sir, I just followed the tutorial.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|