danilevsky / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

event.value is read-only in validate event of a text form field #183

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a custom Validate script to a text field that attempts to set event.value
2. Change the field value in order to trigger the script

What is the expected output? What do you see instead?
The field value is supposed to be changed to whatever event.value is assigned 
to in the script. Instead, the field value is not changed. In a Validate 
script, event.value is supposed to be read/write, not read-only.

What version of the product are you using? On what operating system?
Chrome Version 43.0.2357.130 m, Windows 7 Pro SP1

Please provide any additional information below.

Original issue reported on code.google.com by acroscr...@gmail.com on 3 Jul 2015 at 10:00

GoogleCodeExporter commented 9 years ago
Is there a PDF file that can be used to demonstrate the problem?

Original comment by thestig@chromium.org on 11 Aug 2015 at 10:24

GoogleCodeExporter commented 9 years ago
Attached is a PDF that contains a single text field that has the following 
custom Validate JavaScript:

event.value = event.value.toUpperCase();

This script should convert the entered value to uppercase, but event.value is 
read-only in pdfium for validation scripts, so the script has no effect.

Original comment by acroscr...@gmail.com on 11 Aug 2015 at 10:40

Attachments: