[okular] [Bug 511481] New: PDF Form Inputfield for date shows no hint for invalid date

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sat Nov 1 20:15:31 GMT 2025


https://bugs.kde.org/show_bug.cgi?id=511481

            Bug ID: 511481
           Summary: PDF Form Inputfield for date shows no hint for invalid
                    date
    Classification: Applications
           Product: okular
      Version First 25.04.3
       Reported In:
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: PDF backend
          Assignee: okular-devel at kde.org
          Reporter: andreaswuest at gmx.de
  Target Milestone: ---

Created attachment 186399
  --> https://bugs.kde.org/attachment.cgi?id=186399&action=edit
PDF with the form showing the problem.

Hi,

the form contains input fields for dates labeled Datum von / Datum bis (on the
right hand side). If you enter an invalid date (format) - and you leave the
input field with tab - the invalid input disappears.
It would be nicer if okular would at least show the expected format in some
way, so the user knows how to enter the date format. The pdf.js viewer in
firefox shows the following message, if you enter an invalid date: 

"Invalid date / time: please ensure that the date / time exists. Field [
datum.bis ] should match format dd.mm.yyyy"

STEPS TO REPRODUCE
1. Open attached pdf with okular
2. populate either Datum von or Datum bis with some invalid date (e.g. only
characters, no numbers)
3. If you leave the input field with tab or mouse the invalid input values
disappear.

OBSERVED RESULT
Invalid input field values disappear after input fields loses the focus.

EXPECTED RESULT
If the input field value in not correct, show an warning / info message, that
helps the user the populate the input field (just like pdf.js in Firefox does).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Frameworks Version: 6.14
Qt Version: 6.9.1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list