abracadabraPDF › Forums › PDF – Général › Mettre en surbrillance la cellule active › Répondre à : Mettre en surbrillance la cellule active
J’ai essayé de faire cette modification sur le script
if (typeof app.formsVersion != ‘undefined’ && app.formsVersion >= 6) {app.runtimeHighlight = false;}
/*************************************/
function switchBackground(fieldName)
// déclaration de la fonction
{if (getField(fieldName).fillColor == [ “RGB”, 1,0,0 ])
// si fond du champ est transparent
{this.getField(fieldName).fillColor = color.yellow;}
// alors il devient jaune
else
// sinon (si pas transparent)
{this.getField(fieldName).fillColor = color.red;}
// alors il devient transparent
}
Mais le jaune n’apparait plus à la selection et tout reste rouge ?