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

Confirmation to reset form Android or iPhone

Community Beginner ,
Sep 19, 2025 Sep 19, 2025

I am trying to use a JavaScript to create a dialog box asking if a user wishes to reset a form. I have the following script in use:

 

if(app.alert("Are you sure you want to clear this form?", 2, 2) == 4) { this.resetForm(); }

 

but on android or iPhone this only gives an option to tap OK which does not clear the form when you tap it. I have tried different variations of this script I have seen here and around the web. They all work properly on PC. One even adds another option on PC so I see Yes, No and Cancel, but they all don't work properly on mobile, i only get the box saying "Are you Sure you want to clear this form?" But the only tappable option is "OK" which does nothing. 

im hoping someone can help me adjust the script or has a solution to make a dialog box work with the option to say yes or no

TOPICS
PDF forms
111
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
Adobe Employee ,
Sep 19, 2025 Sep 19, 2025

Hello @Robert26497435gxu8

 

I hope you are doing well, and thank you for reaching out.

 

The Acrobat Reader mobile app has limited JavaScript support for mobile devices like Android or iPhone. It only shows a basic alert dialog with a single OK button and does not support conditional logic based on button responses.

 

You can use the Acrobat Wish form to raise a feature request with the product team. 

 

Thanks,

Anand Sri.

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 Beginner ,
Sep 22, 2025 Sep 22, 2025

Ok. Makes sense. Is there a way to make tapping the OK button actually clear the form however? 

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
Adobe Employee ,
Sep 22, 2025 Sep 22, 2025

Hello @Robert26497435gxu8

 

Thank you for reaching out.

 

The scripts will and may work fine on the desktop app; however, due to the limitations on the mobile device, they will not work as the app does not fully support JavaScript alert dialog return values.

 

There isn't much that can be done with the current custom workflow. You may try the following suggestions, but this may or may not work, and you might have to customize it as per the requirement: 

 

app.alert("This will clear the form. Tap OK to proceed.");
this.resetForm();

 

This may remove the conditional check and directly reset the form after the alert. While it doesn't offer a "Yes/No" choice, it may clear the form data is cleared on mobile devices.

 

Thanks,

Anand Sri.

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 Beginner ,
Sep 22, 2025 Sep 22, 2025

On the iPhone, yes this does Remove the conditional, check and clears the form, regardless of what you tap. But on an android it crashes the app. Android app is full of many bugs that I have reported to Adobe through email on their request. But if between the problems that the android app causes, and the inability to create some sort of "are you sure you wanna do this" dialogue, I am gonna have to look at another app to create forms and choose a different reader

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 22, 2025 Sep 22, 2025

[MOVED TO THE ACROBAT READER MOBILE DISCUSSIONS]


Acrobate du PDF, InDesigner et Photoshopographe
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
Adobe Employee ,
Sep 23, 2025 Sep 23, 2025

 

Hi there,

Hope you are doing well and thank you for taking the time to share your detailed feedback. I understand how frustrating it must be to experience crashes on Android while the same workflow behaves differently on iPhone. 

 

At this point, I recommend updating your Android app to the latest version from the Play Store, as stability improvements are often quietly rolled out in updates. If the issue persists after updating, you may want to continue using the iOS version for critical form work until the Android app is more stable.

 

I know it’s not ideal, but your feedback is very valuable, and I encourage you to also post it in the Adobe UserVoice/Feature Request forums so the product team can track both the crash issue and your suggestion for a confirmation (“are you sure?”) dialog before clearing forms.

 

~Amal

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 Beginner ,
Sep 24, 2025 Sep 24, 2025

I've confirmed that the app is updated. This was reconfirmed because I have been working with Adobe tech-support on several other issues that have made this program very difficult for my team to use. Crashes, documents scrolling all the way to the top when you tap on a text field, no cursor showing up, there have been quite a few problems increasingly making this app an issue for my team. 

I have been exploring other form creation programs, I know that using one of those programs means that acrobat cannot be used to fill in those forms however, I have noticed that using other PDF form filler programs with forms created on another app have been more stable, have allowed proper working dialogue boxes that warn you before you clear a form, and even allow you to take pictures and attach it to a PDF without needing to have a subscription.

 

it's unfortunate that there is no type of script or way to make a dialog box work for acrobat on mobile. 

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
Adobe Employee ,
Sep 24, 2025 Sep 24, 2025
LATEST

Hi there,

Hope you are doing well and thanks for sharing such detailed feedback, and I’m really sorry to hear about the frustrations you and your team have been experiencing with Acrobat mobile.

 

It sounds like you’ve already done a lot of troubleshooting alongside Adobe Support, so I completely understand how discouraging it must feel to still run into crashes, scrolling issues, and the missing cursor when working with forms.

 

At this time, Acrobat mobile doesn’t provide a built-in option to add custom scripts or dialog boxes like you’d find on desktop, so those types of confirmation prompts aren’t available. I know that can be limiting, especially if your workflow relies on safeguards such as “are you sure” messages before clearing a form.

 

As suggested earlier, please share the feedback with our engineering team using the link shared in the previous replies, for their consideration and future implementation.

 

~Amal

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