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

SyntaxError: missing ] after element list

New Here ,
Sep 09, 2024 Sep 09, 2024

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();

724
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
1 ACCEPTED SOLUTION
Community Expert ,
Sep 09, 2024 Sep 09, 2024
LATEST

Replace

 ,27514"

with

 ,"27514"

View solution in original post

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

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/

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

I am using Adobe Acrobat Pro

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

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

Replace

 ,27514"

with

 ,"27514"

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