• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Formulario editable

Community Beginner ,
Oct 07, 2020 Oct 07, 2020

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

TOPICS
Create PDFs , Edit and convert PDFs

Views

150

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
community guidelines
Community Expert ,
Oct 07, 2020 Oct 07, 2020

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.

Votes

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
community guidelines
Community Beginner ,
Mar 29, 2024 Mar 29, 2024

Copy link to clipboard

Copied

LATEST

Error, continuo sin solucionarlo. El problema es que cuando coloco el campo llevo otro igual "colgao" de mi punteroy no tengo forma de quitarlo

 

Votes

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
community guidelines