Skip to main content
Participant
January 29, 2025
Answered

Scripting different for Mac acrobat vs acrobat reader app

  • January 29, 2025
  • 1 reply
  • 386 views

Can someone explain to me why this script works in Acrobat on my Mac but not when the PDF is opened in the Acrobat reader app on an iPad? I've also attached the PDF.

 

var f = this.getField("Power1");

switch(event.value) {

 

case "Upper Body": f.setItems(["elevated explosive push up", "push pass", "push press", "explosive push up from boxes", "single arm snatch", "battlerope", "MB slam", "MB shot put", "clean and press"]);

break;

 

case "Lower Body": f.setItems(["box jump", "squat jump", "swing", "single arm snatch", "broad jump", "tuck jump", "plyo jump"]); break;

 

case "Choose One": f.clearItems();}

Correct answer Bernd Alheit

Acrobat Reader on iPad doesn't support setItems and clearItems.

1 reply

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
January 29, 2025

Acrobat Reader on iPad doesn't support setItems and clearItems.

Participant
January 29, 2025

Is there another way that you know of to have dropdowns populate based off of other dropdown choices?