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

App.alert parameters on ios device

New Here ,
Feb 17, 2025 Feb 17, 2025

Hi there!

 

I'm working on a form that needs to be used on ios (iPad specifically).

I added a button that turns a group of fields to read only.

The code is:

if(app.alert("Document vergendelen?",2,2)==4)
{
this.getField("Group1").readonly = true;
}

This works perfectly on desktop, but on ios it doesn't give me the Yes/No option, only an "OK" button which cancels the action (tried on Acrobat and PDF Viewer).

IMG_9017.jpg

 

I also tried it on PDF Expert which does give the Yes/No option, but then the app freezes and nothing happens.

We would prefer to stick to Acrobat or PDF Viewer though for ease of use.

Any help would be greatly appreciated!

TOPICS
JavaScript , PDF forms
224
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 ,
Feb 17, 2025 Feb 17, 2025

We can't help. If Adobe didn't implement this function correctly in their own application, there's nothing we can do about it, but complain to them and hope they fix it at some point in the future (but don't count on it).

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 ,
Feb 17, 2025 Feb 17, 2025
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 ,
Feb 17, 2025 Feb 17, 2025

That documentation is a joke. How can the method return anything but 1 if there's no way to display the other buttons?

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 ,
Feb 17, 2025 Feb 17, 2025

We can't help. If Adobe didn't implement this function correctly in their own application, there's nothing we can do about it, but complain to them and hope they fix it at some point in the future (but don't count on it).

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 ,
Feb 17, 2025 Feb 17, 2025
LATEST

I see,  that's too bad.
Thanks for your reply!

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