Skip to main content
deckarduk
Inspiring
Nov 18, 2022 3:05 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Nov 18, 2022 3:06 PM UTC

No, it's not possible with a script.

7 replies

JR Boulay
Community Expert
Community Expert
Nov 23, 2022 11:21 PM UTC

"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

 

Translate
Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Nov 18, 2022 3:06 PM UTC

No, it's not possible with a script.

Translate
deckarduk
deckardukAuthor
Inspiring
Nov 18, 2022 3:12 PM UTC

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.

Translate
try67
Community Expert
Community Expert
Nov 18, 2022 3:23 PM UTC

Not possible, either.

Translate