Bug 453434

Summary: PDF Form : Conditional Calculation Example - immediately fails with error popup.
Product: [Applications] okular Reporter: andreaswuest
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid
Priority: NOR    
Version First Reported In: 22.04.0   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Demo file.

Description andreaswuest 2022-05-05 18:59:42 UTC
Created attachment 148592 [details]
Demo file.

This PDF also works in Acrobat, not in Firefox and not at all in Okular.
In Okular clicking on "block calculations" checkbox immeditely triggers a Javascript error box.

file can also be found here:
https://www.pdfscripting.com/public/Free-Sample-PDF-Files-with-scripts.cfm

STEPS TO REPRODUCE
1. Open attached PDF
2. click on "block calculations" 
3. Immediately triggers javascript error box

OBSERVED RESULT
-> you get a javascript error box

EXPECTED RESULT
-> no error box -> dynamic PDF form can be used just like with acrobat.

SOFTWARE/OS VERSIONS
Windows: 10
KDE Frameworks Version 5.93.0
QT Version 5.15.2 (built against 5.15.2)
Version 22.04.0