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;
}
}
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.
Copy link to clipboard
Copied
Report the issue to Google and ask them to fix their faulty viewer.