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.
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.
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.
Copy link to clipboard
Copied
Of course, they have to be in the JS code, but that code uses English terms.