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

SyntaxError: missing ] after element list

New Here ,
Sep 09, 2024 Sep 09, 2024

Copy link to clipboard

Copied

I am needing help with what is wrong with this code... It keeps saying I am missing a ] at line 3. 

 

if(event.value == "Tamper Evident Round")
this.getField("number1").setItems(["22314","22514","23514","25014","25015","26215","26214",27514","21114","21560","22060","LID20114","LID20170","LID20160"]);
else if(event.value == "SealPack Round Tall")
this.getField("number1").setItems(["22520","23120","23520","24020","25020","27520","21120","LID20120"]);
else this.getField("number1").clearItems();

Views

148

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 , Sep 09, 2024 Sep 09, 2024

Replace

 ,27514"

with

 ,"27514"

Votes

Translate

Translate
Community Expert ,
Sep 09, 2024 Sep 09, 2024

Copy link to clipboard

Copied

This is the Using the Community forum (which is the forum for issues using the forums).
Please tell us what Adobe application you are using so that this can be moved to the proper forum for help.

Scroll down here to see a list of the forums:
https://community.adobe.com/

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 ,
Sep 09, 2024 Sep 09, 2024

Copy link to clipboard

Copied

I am using Adobe Acrobat Pro

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 ,
Sep 09, 2024 Sep 09, 2024

Copy link to clipboard

Copied

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



<"moved from using the community">

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 ,
Sep 09, 2024 Sep 09, 2024

Copy link to clipboard

Copied

LATEST

Replace

 ,27514"

with

 ,"27514"

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