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

53

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

correct answers 1 Correct Answer

Most Valuable Participant , 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;

Likes

Translate

Translate
Most Valuable Participant ,
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;

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

Copy link to clipboard

Copied

LATEST

Simple et efficace, merci beaucoup

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