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

Script pour format conditionnel de champ de formulaire

New Here ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

Je vois pour la premiere fois ce site et je m'excuse si la question a déjà été posée.

Avez vous un script qui permet de changer la couleur d'un champ de formulaire en fonction de sa valeur. Un champ de calcul qui devient rouge si sa valeur dépasse 100. Un gros merci d'avance

TOPICS
JavaScript , PDF forms

Views

663

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

correct answers 1 Correct answer

Community Expert , Apr 23, 2021 Apr 23, 2021

Do you use a script to calculate the field's value currently?

If so, add this to the end of it:

if (event.value>100) event.target.fillColor = color.red;

else event.target.fillColor = color.white;

Votes

Translate

Translate
Community Expert ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

Do you use a script to calculate the field's value currently?

If so, add this to the end of it:

if (event.value>100) event.target.fillColor = color.red;

else event.target.fillColor = color.white;

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
New Here ,
Apr 24, 2021 Apr 24, 2021

Copy link to clipboard

Copied

LATEST

Simple et efficace, merci beaucoup

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