Hi,
I've created a PDF form where if a user clicks a checkbox, fields will display. Mouse click and keyboard spacebar work fine in Adobe Reader. In Foxit, mouse click works, meaning when the box is checked using the mouse, the hidden fields display. If I uncheck using the mouse, the fields are hidden again. When I try to use the keyboard spacebar to check the box, it hides the fields when checked, and unhides when checkbox is unchecked. I don't understand why this is happening in Foxit, when it is fine in Adobe.
Here's a snippet of the javascript that I'm using:
// Determine if Check box is marked then use value to show or hide Shipping Address Fields
var nHide = event.target.isBoxChecked(0)?display.visible:displ ay.hidden;
// Get each field in the shipping address info and set to show/hide value
this.getField("Division Bill").display = nHide;
this.getField("Division Bill Field").display = nHide;
this.getField("Division Bill Field2").display = nHide;
My trigger is set to Mouse Up
Thank you!
I've created a PDF form where if a user clicks a checkbox, fields will display. Mouse click and keyboard spacebar work fine in Adobe Reader. In Foxit, mouse click works, meaning when the box is checked using the mouse, the hidden fields display. If I uncheck using the mouse, the fields are hidden again. When I try to use the keyboard spacebar to check the box, it hides the fields when checked, and unhides when checkbox is unchecked. I don't understand why this is happening in Foxit, when it is fine in Adobe.
Here's a snippet of the javascript that I'm using:
// Determine if Check box is marked then use value to show or hide Shipping Address Fields
var nHide = event.target.isBoxChecked(0)?display.visible:displ ay.hidden;
// Get each field in the shipping address info and set to show/hide value
this.getField("Division Bill").display = nHide;
this.getField("Division Bill Field").display = nHide;
this.getField("Division Bill Field2").display = nHide;
My trigger is set to Mouse Up
Thank you!
Comment