- Ce sujet est vide.
-
Sujet
-
Bonjour
le code que j’ai mis en place Action Javascript
var d = this.getField(“Choix Langue”);
var c = this.getField(“code swift-bic”);// The text in a Question Alert Box is usually in two parts. A short explaination
// and the actual question. It’s a good practice to separate the question from the
// explaination by a line, In the text below, this separation is accomplished
// with the escaped line feed characters “nn”
//
// The alert box will only show about 6 lines of text, so both explainations and
// text should be kept short
var cMsg =””;
if (d.value == ‘Fr’ && c.value == “”)cMsg += “Code SWIFT (BIC) absent, voulez- vous continuer ? “;
if (d.value == ‘Fr’)cMsg += “nnVoulez vous continuer?”;if (d.value == ‘En’ && c.value == “”)cMsg += “WIFT/BIC Code missing”;
if (d.value == ‘En’)cMsg += “nnDo you want to continue?”;var nRtn = app.alert(cMsg,2,2,”Voulez vous imprimer votre document?”);
if(nRtn == 4)
{
// A yes Response
// Code for doing the thing you do on a yes
print(true);
}else
{ //Unknown Response
this.getField(“code swift-bic”).setFocus();;
}}
Dans le cas où le champs “code swift-bic” est vide
cela fonctionne très bien
Si il est rempli
alors j’ai un message qui s’affiche Voulez vous imprimer votre document
Voulez vous continuer Oui Non
Je souhaiterai enlever ce message et imprimer directementJe ne vois pas quoi modifier
Merci de votre aide
- Vous devez être connecté pour répondre à ce sujet.