Skip to main content
deckarduk
Inspiring
November 18, 2022
Answered

Check if form field action exists, help required please...

  • November 18, 2022
  • 2 replies
  • 1387 views

Hi there,

 

I know how to set a custom format/keystroke/validation script, using setAction, on a form field using JS.

Is there a way to check if one already exists on any of them using JS?

I don't want to process a field if there is any code there.

 

Thanks in advance.

This topic has been closed for replies.
Correct answer try67

No, it's not possible with a script.

2 replies

JR Boulay
Community Expert
November 23, 2022

"Is is possible to list all properties and methods of an object..."

You can use the FormReport plugin which is part of my free abracadabraTools, it lists all fields properties in a CSV file:

https://www.abracadabrapdf.net/?p=972

 

Acrobate du PDF, InDesigner et Photoshopographe
try67
try67Correct answer
Community Expert
November 18, 2022

No, it's not possible with a script.

deckarduk
deckardukAuthor
Inspiring
November 18, 2022

That's a pity.

I need to add a script to a large number of form fields, via the Debugger, but don't want to affect any that have one already.

I don't need to know what the script is, just if one exists.

Thanks for the help.

try67
Community Expert
November 18, 2022

Not possible, either.