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

colora il modulo con punteggio maggiore

Participant ,
May 15, 2024 May 15, 2024

Copy link to clipboard

Copied

Buongiorno, chi mi aiuta:

ho nove moduli chiamati "Punti"; "Punti1" ,"Punti2",....... con i punteggi e vorrei che il modulo con il maggior  punteggio dei nove si colorasse di verde.. grazie

 

es:

event.target.textColor = color.black;
if (+event.value ....) event.target.fillColor = color.green;

TOPICS
Modern Acrobat , PDF , PDF forms

Views

164

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
Participant ,
May 15, 2024 May 15, 2024

Copy link to clipboard

Copied

vorrei che il primo e il secondo mdulo con il maggior punteggio si colorasse di verde.

grazie

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
Participant ,
May 22, 2024 May 22, 2024

Copy link to clipboard

Copied

buongiorno, chi mi aiuta? grazie

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 Expert ,
May 15, 2024 May 15, 2024

Copy link to clipboard

Copied

Create a custom calculation script that collects all the values of the fields (with their original names) into an array, then sorts that array based on the values, and then changes the top two fields in the array to green (and the others to black).

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
Participant ,
May 15, 2024 May 15, 2024

Copy link to clipboard

Copied

non sono tanto bravo..ma vorrei che si colorassero in automatico sia il primo che il secondo in base al loro punteggio..grazie

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
Participant ,
May 16, 2024 May 16, 2024

Copy link to clipboard

Copied

@try67 mi sto imbattendo a cercare e capire quello che mi hai scritto,al posto di moduli "Punti1",...devo mettere i numeri ?

quello che devo cercare di fare è che deve colorare il modulo dei primi due in classifica 

 

var punti = new classifica("Punti1","Punti2","Punti3","Punti4","Punti5","Punti6","Punti7","Punti8");

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 Expert ,
May 16, 2024 May 16, 2024

Copy link to clipboard

Copied

I'm sorry, but you're quite a long way off. If you wish, I could write this code for you, for a small fee.

You can contact me privately to discuss it further.

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
Participant ,
May 25, 2024 May 25, 2024

Copy link to clipboard

Copied

cercando nella comunity ho adattato un pò alle mie esigenze ma non va,dove sbaglio?
chi mi aiuta...grazie
var pua = Number(this.getField("Punti1").valueAsString);
var pub = Number(this.getField("Punti2").valueAsString);
var puc = Number(this.getField("Punti3").valueAsString);
var pud = Number(this.getField("Punti4").valueAsString);
var pue = Number(this.getField("Punti5").valueAsString);
var puf = Number(this.getField("Punti6").valueAsString);
var pug = Number(this.getField("Punti7").valueAsString);
var puh = Number(this.getField("Punti8").valueAsString);
 
 
if (pua > pub){
event.target.fillColor = color.green;
} else if (pua = pub){
event.target.fillColor = color.white;
} else if (pua < pub){
event.target.fillColor = color.yellow;
if (pua > puc){
       event.target.fillColor = color.green;
} else if (pua = puc){
event.target.fillColor = color.white;
} else if (pua < puc){
event.target.fillColor = color.yellow;
if (pua > pud){
       event.target.fillColor = color.green;
} else if (pua = pud){
event.target.fillColor = color.white;
} else if (pua < pud){
if (pua > pue){
      event.target.fillColor = color.green;
} else if (pua = pue){
event.target.fillColor = color.white;
} else if (pua < pue){
event.target.fillColor = color.yellow;
if (pua > puf){
      event.target.fillColor = color.green;
} else if (pua = puf){
event.target.fillColor = color.white;
} else if (pua < puf){
event.target.fillColor = color.yellow;
if (pua > pug){
      event.target.fillColor = color.green;
} else if (pua = pug){
event.target.fillColor = color.white;
} else if (pua < pug){
event.target.fillColor = color.yellow;
if (pua > puh){
      event.target.fillColor = color.green;
} else if (pua = puh){
event.target.fillColor = color.white;
} else if (pua < puh){
event.target.fillColor = color.yellow;
}
event.value = pua;
 
 
 
 

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
Participant ,
May 25, 2024 May 25, 2024

Copy link to clipboard

Copied

Ho risolto così:

if(event.value <= 4)
     event.target.fillColor = ["G",.5];
else if(event.value <= 9)
     event.target.fillColor= color.yellow;
else if(event.value <= 14)
     event.target.fillColor= color.green;
else if(event.value <= 21)
     event.target.fillColor=["RGB",1,.5,0];
else
     event.target.fillColor= color.red;

if(event.value <= 4)
     event.target.textColor = ["G",.5];
else if(event.value <= 9)
     event.target.textColor= color.yellow;
else if(event.value <= 14)
     event.target.textColor= color.black;
else if(event.value <= 21)
     event.target.textColor=["RGB",0,0,0];
else
     event.target.textColor= color.red;

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
Participant ,
May 28, 2024 May 28, 2024

Copy link to clipboard

Copied

LATEST

sto riscontrando e vorrei che i due moduli Text1.1.0 e Punti1 abbiamo lo stesso riempimento e precisamente che Text1.1.0 abbia lo stesso riempimento di Punti1...

aiuto...

 

var pi = this.getField("Text1.1.0");
var po = this.getField("Punti1"); 
if (color.equal(pi.fillColor = po.fillColor,color.green)

 

 

 

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