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

Custom Keystroke Code is not work on pdf form when using Google Chrome

New Here ,
Nov 22, 2024 Nov 22, 2024

Copy link to clipboard

Copied

I created a form in Adobe Acrobat Pro that uses the code below. It works great when the form is open in Adobe but when users open the form in Chrome it does not work. 

 

var Itemlist = this.getField("Sub-Phase_Description1");

if(event.willCommit)
{
switch(event.value){

case "ARC":
Itemlist.setItems(["Architecture"]);
break;

case "CIV":
Itemlist.setItems(["Civil Engineering"]);
break;

case "CON":
Itemlist.setItems(["Construction Services"]);
break;

case "DIG":
Itemlist.setItems(["Digital Solutions"]);
break;

case "ELE":
Itemlist.setItems(["Electrical Engineering"]);
break;

case "MEC":
Itemlist.setItems(["Mechanical Engineering"]);
break;

case "STR":
Itemlist.setItems(["Structural Engineering"]);
break;

case "SUR":
Itemlist.setItems(["Land Surveying"]);
break;

default:
Itemlist.setItems([""]);
break;
}

}

TOPICS
Create PDFs , PDF , PDF forms

Views

68

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 ,
Nov 22, 2024 Nov 22, 2024

Copy link to clipboard

Copied

As soon as I read the subject of your post I didn't need to read any further.  Non-Adobe PDF viewers do not always support JavaScripts that work with PDF forms in Adobe.  Web browser PDF viewers are very limited in the scripts they support.

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 ,
Nov 22, 2024 Nov 22, 2024

Copy link to clipboard

Copied

LATEST

Report the issue to Google and ask them to fix their faulty viewer.

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