Build 398 Form cannot remove selection change javascript

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Mathew
User
Posts: 669
Joined: Thu Jun 19, 2014 7:30 pm

Build 398 Form cannot remove selection change javascript

Post by Mathew »

If one assigns a script to "selection change" for a Listbox or Dropdown:
image.png
I cannot see a way to remove the script through the UI. I've tried opening the script and deleting it, but then the OK button greys out.
image(1).png
The only workarounds I can think of is to just put a single space into the script - it doesn't actually remove the "JavaScript" action though.

Or run the following script, where "My Field" is the name of the field:

Code: Select all

this.getField("My Field").setAction("Keystroke","")
You do not have the required permissions to view the files attached to this post.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11733
Joined: Wed Jan 03, 2018 6:52 pm

Re: Build 398 Form cannot remove selection change javascript

Post by Daniel - PDF-XChange »

Hello, Mathew

Thank you for the report, I have passed this along to the Dev team and expect we will see a "remove action" button added to this menu in the future.

[Update] This will be fixed in the next build!

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com