JavaScript en casilla verificación

New Here ,
Dec 01, 2018

Copy link to clipboard

Copied

Buenas,

soy nuevo con Adobe DC y me ha sorprendido el hecho de que no funcione Ejecutar JavaScript en una casilla de verificación, con ninguno de los desecadenantes (ratón soltado, ratón pulsado, etc). Sí funciona con otras acciones, como ejecutar elemente de menú, etc.

Pruebo a ejecutar códigos muy sencillos (como alert ("hola"); pero nada).

Qué se me estará escapando? tengo que configurar alguna característica? o simplemente en la versión DC no deja ese tipo de acciones en casillas de verificación (javascritp sí me ha permitido en campos de texto).

Muchas gracias, y disculpad mi ignorancia.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

102

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

JavaScript en casilla verificación

New Here ,
Dec 01, 2018

Copy link to clipboard

Copied

Buenas,

soy nuevo con Adobe DC y me ha sorprendido el hecho de que no funcione Ejecutar JavaScript en una casilla de verificación, con ninguno de los desecadenantes (ratón soltado, ratón pulsado, etc). Sí funciona con otras acciones, como ejecutar elemente de menú, etc.

Pruebo a ejecutar códigos muy sencillos (como alert ("hola"); pero nada).

Qué se me estará escapando? tengo que configurar alguna característica? o simplemente en la versión DC no deja ese tipo de acciones en casillas de verificación (javascritp sí me ha permitido en campos de texto).

Muchas gracias, y disculpad mi ignorancia.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

103

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 01, 2018 0
Most Valuable Participant ,
Dec 01, 2018

Copy link to clipboard

Copied

You can use Spanish in your code, but the code keywords themselves have to be in English, and must have the correct structure.

Before running the code from a field try it from the JS Console. If you try to run the code you posted above you'll see it generates an error message. That's because you didn't include the name of the app object, that the alert method is a part of.

So the code to use is:

app.alert("Hola!");

The text between the quotation marks can be in any language, of course.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 01, 2018 0
New Here ,
Dec 02, 2018

Copy link to clipboard

Copied

Many thanks,
You see, I had a simple answer.
Indeed, I do not know English. I learn Javascript like someone who learns Esperanto. I do not think that the words must be in English, but that the words must be in the Javascript code.
Slowly. Thanks, again.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 02, 2018 1
try67 LATEST
Most Valuable Participant ,
Dec 02, 2018

Copy link to clipboard

Copied

Of course, they have to be in the JS code, but that code uses English terms.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 02, 2018 0