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

syntax errors

New Here ,
Jul 16, 2019 Jul 16, 2019

Copy link to clipboard

Copied

I am trying to follow this walk through: https://acrobatusers.com/tutorials/change_another_field

my code for the first part is:

if( event.willCommit ) {

    if(event.value == "") this.resetForm(["Account Manager","MOBO","Customer","CNAME","Contact","Cphone","ADD1","ADD2","CPPC","CN1","CN2","CN3","CN4","CN5","CN6","CN7","CO1","CO2","CO3","CO4","CO5","CO6","CO7","CO8","EUI"]); else SetFieldValues(event.value);

}

and my code for the second part is here: WeTransfer

I keep getting a syntax error...

the file Im working on is here: WeTransfer

I am trying to learn Java, and do not claim to be fluent in this coding.

any help would be amazing!... thank you!

TOPICS
Acrobat SDK and JavaScript

Views

1.2K

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jul 18, 2019 Jul 18, 2019

The entry MOBO is not defined in DeptData.

Votes

Translate

Translate
Community Expert ,
Jul 16, 2019 Jul 16, 2019

Copy link to clipboard

Copied

You must only use straight quotes in your code, not curly ones.

Votes

Translate

Translate

Report

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
New Here ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

Hey Try,

do you mean single quotes vs double?...

Votes

Translate

Translate

Report

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 Expert ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

No. I mean straight quotes (like this: " ), vs. curly quotes (like this: “ and ”).

Votes

Translate

Translate

Report

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
New Here ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

great, thank you!... i have updated all of these... i now i have an error as below:Screen Shot 2019-07-17 at 9.17.47 AM.png

it appears there is a ; mark before... but im still missing something...

again, i really appreciate the feedback!.. thank you so much!

Votes

Translate

Translate

Report

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 Expert ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

You can't include spaces in the names of the variables in your data model.

Votes

Translate

Translate

Report

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 Expert ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

PS. In the future please post your code as text, not as an image.

Votes

Translate

Translate

Report

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
New Here ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

SyntaxError: missing ; before statement

1: at line 2

Ln 28, Col 1

Votes

Translate

Translate

Report

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 Expert ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

Use this:

"Playground Guys": { ...

Votes

Translate

Translate

Report

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
New Here ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

thank you so much, i feel horrible that i need this much help... but am committed to learning and making this pdf work..

i made this change...  code below... but now have a SyntaxError: missing ; before statement LN 15, Col 55

1: at line 2

why does it keep highlighting(at the bottom): "Function SetFieldValue(cDeptName) {

code:

“Playground Guys”:{ AccountManager: “Rich Berg”, MOBO: “Playground Guys”, Customer: ”Playground Guys”, CNAME: “Playground Guys”, Con.tact: ””, Cphone: ””, ADD1: ”PO Box 4031”, ADD2: ””, CPPC: ”Olds AB  T4H 1P7”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ”4”, CO2: ”2”, CO3: ”3”, CO4: ”9”, CO5: ”0”, CO6: ”0”, CO7: ”1”, CO8: ”8”, EUI: ””  }, “NAIM Canada Inc.”:{ AccountManager: “Rich Berg”, MOBO: “NAIM Canada Inc.”, Customer: ”NAIM Canada Inc.”, CNAME: “NAIM Canada Inc.”, Contact: ””, Cphone: ””, ADD1: ”158-5255 McCall Way NE”, ADD2: ””, CPPC: ”Calgary AB  T2E7J5”, CN1: ”5”, CN2: ”2”, CN3: ”9”, CN4: ”0”, CN5: ”5”, CN6: ”3”, CN7: ”8”, CO1: ”4”, CO2: ”0”, CO3: ”0”, CO4: ”6”, CO5: ”5”, CO6: ”4”, CO7: ”3”, CO8: ”5”, EUI: ””  }, “Douglasbridge”:{ AccountManager: “Neil Jakab”, MOBO: “Douglasbridge”, Customer: ”Douglasbridge”, CNAME: “Douglasbridge”, Contact: ””, Cphone: ””, ADD1: ”313-10820 24 St SE”, ADD2: ””, CPPC: ”Calgary AB  T2Z 4C9”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ”4”, CO2: ”2”, CO3: ”3”, CO4: ”9”, CO5: ”0”, CO6: ”0”, CO7: ”1”, CO8: ”8”, EUI: ””  }, “Sudden Fun Recreation Equipment Ltd.”:{ AccountManager: “Neil Jakab”, MOBO: “Sudden Fun Recreation Equipment Ltd.”, Customer: ”Sudden Fun Recreation Equipment Ltd.”, CNAME: “Sudden Fun Recreation Equipment Ltd.”, Contact: ””, Cphone: ””, ADD1: ”PO Box 89104 RPO Towne”, ADD2: ””, CPPC: ”Calgary AB  T2Z 3W3”, CN1: ”3”, CN2: ”7”, CN3: ”9”, CN4: ”8”, CN5: ”1”, CN6: ”2”, CN7: ”3”, CO1: ”4”, CO2: ”2”, CO3: ”3”, CO4: ”9”, CO5: ”0”, CO6: ”0”, CO7: ”1”, CO8: ”8”, EUI: ””  }, “SAIT”:{ AccountManager: “Scott Tydeman”, MOBO: “SAIT”, Customer: ”SAIT”, CNAME: “SAIT”, Contact: ””, Cphone: ””, ADD1: ”1301 16 Ave NW”, ADD2: ””, CPPC: ”Calgary AB  T2M 0L4”, CN1: ”2”, CN2: ”8”, CN3: ”3”, CN4: ”4”, CN5: ”9”, CN6: ”4”, CN7: ”4”, CO1: ”4”, CO2: ”2”, CO3: ”3”, CO4: ”9”, CO5: ”0”, CO6: ”0”, CO7: ”1”, CO8: ”8”, EUI: ””  }, “Miracle Channel”:{ AccountManager: “Tracy Whillans”, MOBO: “Miracle Channel”, Customer: ”Miracle Channel”, CNAME: “Miracle Channel”, Con.tact: ””, Cphone: ””, ADD1: ”450 31 St N”, ADD2: ””, CPPC: ”Lethbridge AB  T1H 3Z3”, CN1: ”1”, CN2: ”6”, CN3: ”5”, CN4: ”6”, CN5: ”5”, CN6: ”8”, CN7: ”1”, CO1: ”4”, CO2: ”1”, CO3: ”4”, CO4: ”5”, CO5: ”5”, CO6: ”5”, CO7: ”2”, CO8: ”2”, EUI: ””  }, “Western Irrigation District”:{ AccountManager: “Rick Puttick”, MOBO: “Western Irrigation District”, Customer: ”Western Irrigation District”, CNAME: “Western Irrigation District”, Contact: ””, Cphone: ””, ADD1: ”Box 2372, 105-900 Pine Rd”, ADD2: ””, CPPC: ”Strathmore AB  T1P 1K3”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ”4”, CO2: ”2”, CO3: ”3”, CO4: ”9”, CO5: ”0”, CO6: ”0”, CO7: ”1”, CO8: ”8”, EUI: ””  }, “Performance Brokerage”:{ AccountManager: “Rob Remington”, MOBO: “Performance Brokerage”, Customer: ”Performance Brokerage”, CNAME: “Performance Brokerage”, Contact: ””, Cphone: ””, ADD1: ”200-7545 Irvine Centre Dr”, ADD2: ””, CPPC: ”Irvine CA  92618”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ”4”, CO2: ”2”, CO3: ”3”, CO4: ”9”, CO5: ”0”, CO6: ”0”, CO7: ”1”, CO8: ”8”, EUI: ””  }, “United Farmers Association”:{ AccountManager: “Rich Berg”, MOBO: “United Farmers Association”, Customer: ”United Farmers Association”, CNAME: “United Farmers Association”, Contact: ””, Cphone: ””, ADD1: ”700-4838 Richard Rd SW”, ADD2: ””, CPPC: ”Calgary AB  T3E 6L1”, CN1: ”1”, CN2: ”2”, CN3: ”9”, CN4: ”0”, CN5: ”0”, CN6: ”6”, CN7: ”1”, CO1: ”4”, CO2: ”0”, CO3: ”0”, CO4: ”1”, CO5: ”0”, CO6: ”2”, CO7: ”4”, CO8: ”0”, EUI: ”” }, “POE Group Advisors”:{ AccountManager: “Rich Berg”, MOBO: “POE Group Advisors”, Customer: ”POE Group Advisors”, CNAME: “POE Group Advisors”, Contact: ””, Cphone: ””, ADD1: ””, ADD2: ””, CPPC: ”  ”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ”EU742672459”  }, “National Music Centre, Studio Bell”:{ AccountManager: “Scott Tydeman”, MOBO: “National Music Centre, Studio Bell”, Customer: ”National Music Centre, Studio Bell”, CNAME: “National Music Centre, Studio Bell”, Contact: ””, Cphone: ””, ADD1: ”300, 851 4 ST SE”, ADD2: ””, CPPC: ”Calgary AB  T2G 1P2”, CN1: ”8”, CN2: ”0”, CN3: ”5”, CN4: ”4”, CN5: ”0”, CN6: ”8”, CN7: ”7”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Calgary Military Family Resource Centre”:{ AccountManager: “Rich Berg”, MOBO: “Calgary Military Family Resource Centre”, Customer: ”Calgary Military Family Resource Centre”, CNAME: “Calgary Military Family Resource Centre”, Contact: ””, Cphone: ””, ADD1: ”4225 Crowchild Trail SW”, ADD2: ””, CPPC: ”Calgary AB  T2E 1T8”, CN1: ”7”, CN2: ”1”, CN3: ”8”, CN4: ”0”, CN5: ”9”, CN6: ”7”, CN7: ”4”, CO1: ”4”, CO2: ”2”, CO3: ”1”, CO4: ”8”, CO5: ”0”, CO6: ”0”, CO7: ”1”, CO8: ”4”, EUI: ””  }, “UP Financial”:{ AccountManager: “Neil Jakab”, MOBO: “UP Financial”, Customer: ”UP Financial”, CNAME: “UP Financial”, Contact: ””, Cphone: ””, ADD1: ”1023 Cameron Ave SW”, ADD2: ””, CPPC: ”Calgary AB  T2T 0K2”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Kensington Wine Market”:{ AccountManager: “Rob Remington”, MOBO: “Kensington Wine Market”, Customer: ”Kensington Wine Market”, CNAME: “Kensington Wine Market”, Contact: ””, Cphone: ””, ADD1: ”1257 Kensington Road NW”, ADD2: ””, CPPC: ”Calgary AB  T2N 3P8”, CN1: ”1”, CN2: ”9”, CN3: ”4”, CN4: ”8”, CN5: ”3”, CN6: ”1”, CN7: ”8”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Century Auctions”:{ AccountManager: “Neil Jakab”, MOBO: “Century Auctions”, Customer: ”Century Auctions”, CNAME: “Century Auctions”, Contact: ””, Cphone: ””, ADD1: ”PO Box 5220”, ADD2: ””, CPPC: ”High River AB  T1V 1M4”, CN1: ”4”, CN2: ”8”, CN3: ”2”, CN4: ”9”, CN5: ”2”, CN6: ”2”, CN7: ”0”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Brinkhaus”:{ AccountManager: “Rich Berg”, MOBO: “Brinkhaus”, Customer: ”Brinkhaus”, CNAME: “Brinkhaus”, Contact: ””, Cphone: ””, ADD1: ”823 6 Ave SW”, ADD2: ””, CPPC: ”Calgary Ab  T2P 0V3”, CN1: ”3”, CN2: ”7”, CN3: ”9”, CN4: ”1”, CN5: ”8”, CN6: ”6”, CN7: ”0”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Heritage Park Historical Village”:{ AccountManager: “Rich Berg”, MOBO: “Heritage Park Historical Village”, Customer: ”Heritage Park Historical Village”, CNAME: “Heritage Park Historical Village”, Contact: ””, Cphone: ””, ADD1: ”1900 Heritage Dr SW”, ADD2: ””, CPPC: ”Calgary AB  T2V 2X3”, CN1: ”2”, CN2: ”5”, CN3: ”5”, CN4: ”0”, CN5: ”0”, CN6: ”0”, CN7: ”8”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Yellowstone to Yukon”:{ AccountManager: “Rich Berg”, MOBO: “Yellowstone to Yukon”, Customer: ”Yellowstone to Yukon”, CNAME: “Yellowstone to Yukon”, Contact: ””, Cphone: ””, ADD1: ”200-1350 Railway Ave”, ADD2: ””, CPPC: ”Canmore AB  T1W 1P6”, CN1: ”7”, CN2: ”1”, CN3: ”9”, CN4: ”2”, CN5: ”4”, CN6: ”9”, CN7: ”2”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Calgary Womens Emergency Shelter”:{ AccountManager: “Rich Berg”, MOBO: “Calgary Womens Emergency Shelter”, Customer: ”Calgary Wom.ens Emergency Shelter”, CNAME: “Calgary Womens Emergency Shelter”, Contact: ””, Cphone: ””, ADD1: ”500-1509 Centre St SW”, ADD2: ””, CPPC: ”Caglary AB  T2G 2E6”, CN1: ”2”, CN2: ”7”, CN3: ”2”, CN4: ”8”, CN5: ”0”, CN6: ”9”, CN7: ”5”, CO1: ”4”, CO2: ”1”, CO3: ”8”, CO4: ”1”, CO5: ”4”, CO6: ”0”, CO7: ”1”, CO8: ”8”, EUI: ”EU709785282”  }, “The Canadian Bar Association”:{ AccountManager: “Rich Berg”, MOBO: “The Canadian Bar Association”, Customer: ”The Canadian Bar Associ.ation”, CNAME: “The Canadian Bar Association”, Contact: ””, Cphone: ””, ADD1: ”710-777 8 Ave SW”, ADD2: ””, CPPC: ”Calgary AB  T2P 3R5”, CN1: ”3”, CN2: ”7”, CN3: ”8”, CN4: ”8”, CN5: ”0”, CN6: ”4”, CN7: ”0”, CO1: ”4”, CO2: ”0”, CO3: ”1”, CO4: ”1”, CO5: ”0”, CO6: ”3”, CO7: ”3”, CO8: ”0”, EUI: ””  }, “Canadian Mental Health”:{ AccountManager: “Rick Puttick”, MOBO: “Canadian Mental Health”, Customer: ”Canadian Mental Health”, CNAME: “Canadian Mental Health”, Contact: ””, Cphone: ””, ADD1: ”105-1040 7 Ave SW”, ADD2: ””, CPPC: ”Calgary AB  T2P 3G9”, CN1: ”3”, CN2: ”5”, CN3: ”2”, CN4: ”8”, CN5: ”9”, CN6: ”0”, CN7: ”1”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Emerson Clarke Printing Corp.”:{ AccountManager: “Rich Berg”, MOBO: “Emerson Clarke Printing Corp.”, Customer: ”Emerson Clarke Printing Corp.”, CNAME: “Emerson Clarke Printing Corp.”, Contact: ””, Cphone: ””, ADD1: ”9-4001B 19 St NE”, ADD2: ””, CPPC: ”Calgary AB  T2E 6X8”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ”4”, CO2: ”2”, CO3: ”3”, CO4: ”9”, CO5: ”0”, CO6: ”0”, CO7: ”1”, CO8: ”8”, EUI: ””  }, “Kidney Foundation of Canada”:{ AccountManager: “Scott Tydeman”, MOBO: “Kidney Foundation of Canada”, Customer: ”Kidney Foundation of Canada”, CNAME: “Kidney Foundation of Canada”, Contact: ””, Cphone: ””, ADD1: ”6007 1A Street SW”, ADD2: ””, CPPC: ”Calgary AB  T2H 0G5”, CN1: ”3”, CN2: ”8”, CN3: ”7”, CN4: ”5”, CN5: ”7”, CN6: ”0”, CN7: ”9”, CO1: ”4”, CO2: ”0”, CO3: ”8”, CO4: ”2”, CO5: ”7”, CO6: ”1”, CO7: ”4”, CO8: ”6”, EUI: ””  }, “Canadian Baptist of Western Canada”:{ AccountManager: “Rob Remington”, MOBO: “Canadian Baptist of Western Canada”, Customer: ”Canadi.an Baptist of Western Canada”, CNAME: “Canadian Baptist of Western Canada”, Contact: ””, Cphone: ””, ADD1: ”201-221 10 Ave SE”, ADD2: ””, CPPC: ”Calgary AB  T2G 0V9”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ”4”, CO2: ”2”, CO3: ”3”, CO4: ”9”, CO5: ”0”, CO6: ”0”, CO7: ”1”, CO8: ”8”, EUI: ””  }, “Statesman”:{ AccountManager: “Rich Berg”, MOBO: “Statesman”, Customer: ”Statesman”, CNAME: “Statesman”, Contact: ””, Cphone: ””, ADD1: ”7370 Sierra Morena Blvd. SW”, ADD2: ””, CPPC: ”Calgary AB  T3H 4H9”, CN1: ”1”, CN2: ”0”, CN3: ”1”, CN4: ”6”, CN5: ”8”, CN6: ”3”, CN7: ”1”, CO1: ”4”, CO2: ”2”, CO3: ”7”, CO4: ”5”, CO5: ”6”, CO6: ”0”, CO7: ”1”, CO8: ”9”, EUI: ””  }, “Alliance Pipeline”:{ AccountManager: “Neil Jakab”, MOBO: “Alliance Pipeline”, Customer: ”Alliance Pipeline”, CNAME: “Alliance Pipeline”, Contact: ””, Cphone: ””, ADD1: ”800-605 5 Ave SW”, ADD2: ””, CPPC: ”Calgary AB  T2P 3H5”, CN1: ”3”, CN2: ”5”, CN3: ”0”, CN4: ”8”, CN5: ”1”, CN6: ”8”, CN7: ”8”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Edelweiss Imports Ltd.”:{ AccountManager: “Neil Jakab”, MOBO: “Edelweiss Imports Ltd.”, Customer: ”Edelweiss Imports Ltd.”, CNAME: “Edel.weiss Imports Ltd.”, Contact: ””, Cphone: ””, ADD1: ”1921 20 Ave NW”, ADD2: ””, CPPC: ”Calgary AB  T2M 1H6”, CN1: ”3”, CN2: ”0”, CN3: ”8”, CN4: ”1”, CN5: ”7”, CN6: ”5”, CN7: ”3”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Wellspring Calgary”:{ AccountManager: “Rich Berg”, MOBO: “Wellspring Calgary”, Customer: ”Wellspring Calgary”, CNAME: “Wellspring Calgary”, Contact: ””, Cphone: ””, ADD1: ”1404 home Road NW”, ADD2: ””, CPPC: ”Calgary AB  T3B 1G7”, CN1: ”7”, CN2: ”3”, CN3: ”1”, CN4: ”1”, CN5: ”9”, CN6: ”1”, CN7: ”1”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ”EU509903623”  }, “Connect First Credit Union”:{ AccountManager: “Rob Remington”, MOBO: “Connect First Credit Union”, Customer: ”Connect First Credit Union”, CNAME: “Connect First Credit Union”, Contact: ””, Cphone: ””, ADD1: ”401-6501 51 Street”, ADD2: ””, CPPC: ”Olds AB  T4H 1Y6”, CN1: ”3”, CN2: ”6”, CN3: ”4”, CN4: ”7”, CN5: ”5”, CN6: ”5”, CN7: ”2”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Calgary Humane Society”:{ AccountManager: “Neil Jakab”, MOBO: “Calgary Humane Society”, Customer: ”Calgary Humane Society”, CNAME: “Calgary Humane Society”, Contact: ”Tracy Kelly”, Cphone: ””, ADD1: ”4455 110 Ave SE”, ADD2: ””, CPPC: ”Calgary AB  T2C 2T7”, CN1: ”7”, CN2: ”2”, CN3: ”5”, CN4: ”7”, CN5: ”8”, CN6: ”2”, CN7: ”9”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Morrison Homes”:{ AccountManager: “Tracy Whillans”, MOBO: “Morrison Homes”, Customer: ”Morrison Homes”, CNAME: “Morrison Homes”, Contact: ”Maja Krol”, Cphone: ””, ADD1: ”11158 42 St SE”, ADD2: ””, CPPC: ”Calgary AB  T2C 0J9”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Exposed By Glen”:{ AccountManager: “Michael Atchison”, MOBO: “Exposed By Glen”, Customer: ”Exposed By Glen”, CNAME: “Exposed By Glen”, Contact: ””, Cphone: ””, ADD1: ”345 Highland Circle”, ADD2: ””, CPPC: ”Strathmore AB  T1P 1V5”, CN1: ”4”, CN2: ”6”, CN3: ”9”, CN4: ”6”, CN5: ”2”, CN6: ”6”, CN7: ”3”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Sharp Insurance”:{ AccountManager: “Rob Remington”, MOBO: “Sharp Insurance”, Customer: ”Sharp Insurance”, CNAME: “Sharp Insurance”, Contact: ””, Cphone: ””, ADD1: ”300-1331 MacLeod Trail SE”, ADD2: ””, CPPC: ”Calgary AB  T2G 0K3”, CN1: ”1”, CN2: ”0”, CN3: ”6”, CN4: ”5”, CN5: ”3”, CN6: ”0”, CN7: ”0”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: ””  }, “Blue Line Taxi”:{ AccountManager: “Neil Jakab”, MOBO: “Blue Line Taxi”, Customer: ”Blue Line Taxi”, CNAME: “Blue Line Taxi”, Contact: ””, Cphone: ””, ADD1: ”1239 Allen Street SE”, ADD2: ””, CPPC: ”Airdrie AB  T4B 1B6”, CN1: ”8”, CN2: ”8”, CN3: ”1”, CN4: ”6”, CN5: ”4”, CN6: ”9”, CN7: ”4”, CO1: ””, CO2: ””, CO3: ””, CO4: ””, CO5: ””, CO6: ””, CO7: ””, CO8: ””, EUI: "" }};

function SetFieldValues(cDeptName) {

this.getField("AccountManager").value = DeptData[cDeptName].AccountManager;

this.getField("MOBO").value = DeptData[cDeptName].MOBO;

this.getField("Customer").value = DeptData[cDeptName].Customer;

this.getField("CNAME").value = DeptData[cDeptName].CNAME;

this.getField("Contact").value = DeptData[cDeptName].Contact;

this.getField("Cphone").value = DeptData[cDeptName].Cphone;

this.getField("ADD1").value = DeptData[cDeptName].ADD1;

this.getField("ADD2").value = DeptData[cDeptName].ADD2;

this.getField("CPPC").value = DeptData[cDeptName].CPPC;

this.getField("CN1").value = DeptData[cDeptName].CN1;

this.getField("CN2").value = DeptData[cDeptName].CN2;

this.getField("CN3").value = DeptData[cDeptName].CN3;

this.getField("CN4").value = DeptData[cDeptName].CN4;

this.getField("CN5").value = DeptData[cDeptName].CN5;

this.getField("CN6").value = DeptData[cDeptName].CN6;

this.getField("CN7").value = DeptData[cDeptName].CN7;

this.getField("CO1").value = DeptData[cDeptName].CO1;

this.getField("CO2").value = DeptData[cDeptName].CO2;

this.getField("CO3").value = DeptData[cDeptName].CO3;

this.getField("CO4").value = DeptData[cDeptName].CO4;

this.getField("CO5").value = DeptData[cDeptName].CO5;

this.getField("CO6").value = DeptData[cDeptName].CO6;

this.getField("CO7").value = DeptData[cDeptName].CO7;

this.getField("CO8").value = DeptData[cDeptName].CO8;

this.getField("EUI").value = DeptData[cDeptName].EUI;

Votes

Translate

Translate

Report

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
New Here ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

pdf file here if it helps at all...

WeTransfer

Votes

Translate

Translate

Report

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 Expert ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

You're still using the wrong kind of quotes in your code.

Votes

Translate

Translate

Report

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
New Here ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

my goodness, I just want to bang my head on the wall.. can I simply switch them to single quotes?... im on a mac, is there a better way to prepare this code other than text editor?

Votes

Translate

Translate

Report

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 Expert ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

Yes, you can use single quotes. However, you have to use a plain-text editor. You can't write your code in something like Word, which replaces normal quotes with curly ones and changes the formatting of the text in all kinds of ways.

Votes

Translate

Translate

Report

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 Expert ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

Use a code editor like emacs.

Votes

Translate

Translate

Report

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
New Here ,
Jul 18, 2019 Jul 18, 2019

Copy link to clipboard

Copied

Thank you again...  I have removed as much as possible and am now just trying to work with the very first entry... i have only one field that is working... what am i missing for the other fields?

my code:

// Place all prepopulation data into a single data structure

var DeptData = { "Playground Guys":{ AccountManager: "Rich Berg",

                                     Customer: "Playground Guys",

                                     CNAME: "Playground Guys",

                                     Contact: "",

                                     Cphone: "",

                                     ADD1: "PO Box 4031",

                                     ADD2: "",

                                     CPPC: "Olds AB  T4H 1P7",

                                     CN1: "1",

                                     CN2: "0",

                                     CN3: "6",

                                     CN4: "5",

                                     CN5: "3",

                                     CN6: "0",

                                     CN7: "0",

                                     CO1: "4",

                                     CO2: "2",

                                     CO3: "3",

                                     CO4: "9",

                                     CO5: "0",

                                     CO6: "0",

                                     CO7: "1",

                                     CO8: "8",

                                     EUI: "" }};

function SetFieldValues(cDeptName)

{

  this.getField("AccountManager").value = DeptData[cDeptName].AccountManager;

this.getField("MOBO").value = DeptData[cDeptName].MOBO;

this.getField("Customer").value = DeptData[cDeptName].Customer;

this.getField("CNAME").value = DeptData[cDeptName].CNAME;

this.getField("Contact").value = DeptData[cDeptName].Contact;

this.getField("Cphone").value = DeptData[cDeptName].Cphone;

this.getField("ADD1").value = DeptData[cDeptName].ADD1;

this.getField("ADD2").value = DeptData[cDeptName].ADD2;

this.getField("CPPC").value = DeptData[cDeptName].CPPC;

this.getField("CN1").value = DeptData[cDeptName].CN1;

this.getField("CN2").value = DeptData[cDeptName].CN2;

this.getField("CN3").value = DeptData[cDeptName].CN3;

this.getField("CN4").value = DeptData[cDeptName].CN4;

this.getField("CN5").value = DeptData[cDeptName].CN5;

this.getField("CN6").value = DeptData[cDeptName].CN6;

this.getField("CN7").value = DeptData[cDeptName].CN7;

this.getField("CO1").value = DeptData[cDeptName].CO1;

this.getField("CO2").value = DeptData[cDeptName].CO2;

this.getField("CO3").value = DeptData[cDeptName].CO3;

this.getField("CO4").value = DeptData[cDeptName].CO4;

this.getField("CO5").value = DeptData[cDeptName].CO5;

this.getField("CO6").value = DeptData[cDeptName].CO6;

this.getField("CO7").value = DeptData[cDeptName].CO7;

this.getField("CO8").value = DeptData[cDeptName].CO8;

this.getField("EUI").value = DeptData[cDeptName].EUI;

}

what i am referencing: WeTransfer

and my file:WeTransfer

thank you in advance for the help!... im sorry its so painful!...

Votes

Translate

Translate

Report

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 Expert ,
Jul 18, 2019 Jul 18, 2019

Copy link to clipboard

Copied

The entry MOBO is not defined in DeptData.

Votes

Translate

Translate

Report

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
New Here ,
Jul 18, 2019 Jul 18, 2019

Copy link to clipboard

Copied

thank you so much! this has helped me!

Votes

Translate

Translate

Report

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 Expert ,
Jul 18, 2019 Jul 18, 2019

Copy link to clipboard

Copied

You need to make sure to check the JS Console and you'll see the error messages there...

Votes

Translate

Translate

Report

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
New Here ,
Jul 18, 2019 Jul 18, 2019

Copy link to clipboard

Copied

thanks! Try... im learning alot....

Votes

Translate

Translate

Report

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
New Here ,
Jul 18, 2019 Jul 18, 2019

Copy link to clipboard

Copied

I have a checkbox that I was hoping would drive the dropdown to a certain selection... is that possible?

Votes

Translate

Translate

Report

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 Expert ,
Jul 18, 2019 Jul 18, 2019

Copy link to clipboard

Copied

What do you mean?

Votes

Translate

Translate

Report

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
New Here ,
Jul 18, 2019 Jul 18, 2019

Copy link to clipboard

Copied

my file here...

WeTransfer

right now I have the drop down "mailing on behalf of"... however, I have a checkbox next to it, that if checked, should force the drop-down to a certain entry... is it possible to have that work?

Votes

Translate

Translate

Report

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 Expert ,
Jul 18, 2019 Jul 18, 2019

Copy link to clipboard

Copied

LATEST

Yes. You can add the following as the custom calculation script of the drop down field:

if (this.getField("Same as Mailed by").valueAsString!="Off") event.value = "...";

Votes

Translate

Translate

Report

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