Bug 511481 - PDF Form Inputfield for date shows no hint for invalid date
Summary: PDF Form Inputfield for date shows no hint for invalid date
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (other bugs)
Version First Reported In: 25.04.3
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-01 20:15 UTC by andreaswuest
Modified: 2025-11-01 20:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
PDF with the form showing the problem. (562.35 KB, application/pdf)
2025-11-01 20:15 UTC, andreaswuest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andreaswuest 2025-11-01 20:15:31 UTC
Created attachment 186399 [details]
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