Copy link to clipboard
Copied
Buenas tardes.
Alguin podría indicarme si puedo asignar un color cuando marque un número determinado???
Estoy preparando un formulario pdf editable y hay una columna con valores numericos 1, 2 y 3 que responden a un nivel bajo, medio o alto.
Podría cuando elija sobre el teclado el 2 que apareciera en naranja??? y el 1 en verde y el 3 en rojo???
Gracias de antemano
Copy link to clipboard
Copied
Sure, you can use the following code as the custom Validation script for your field:
if (event.value=="1") event.target.fillColor = color.green;
else if (event.value=="2") event.target.fillColor = ["RGB", 1, 0.5, 0];
else if (event.value=="3") event.target.fillColor = color.red;
else event.target.fillColor = color.transparent;
You'll have to disable the Fields Highlighting option for it to appear, though. Otherwise it will always be a light blue.
Copy link to clipboard
Copied
Error, continuo sin solucionarlo. El problema es que cuando coloco el campo llevo otro igual "colgao" de mi punteroy no tengo forma de quitarlo