Donnez vie à vos documents numériques !
 

Mon Msg Box ne marche pas

abracadabraPDF Forums PDF – Général Mon Msg Box ne marche pas

  • Créateur
    Sujet
  • #70746
    Galactica
    Participant

    Alors mon Msg Box ne marche pas  ????

    var cMessAlert = ” OK pour continuer ? “;
    var cAlertTitre = ” TITRE DE L’ALERTE ”
    // si oui
    if (app.alert({cMsg: cMessAlert, cTitle: cAlertTitre, nIcon: 2, nType: 2}) == 4) {
    // script à exécuter
    }

    // sinon
    else {

    }
    this.resetForm();
    for (var i=0; i<this.numFields; i++) {
    if (this.getNthFieldName(i).indexOf(“foto_af_image”)>-1) this.getField(this.getNthFieldName(i)).buttonSetIcon(event.target.buttonGetIcon());

    }

    si je fait oui ou non il me reset quand meme mes champs :

    je voudrais que si OUI alors il reset si NON il ne fait rien.

     

    Merci

Affichage de 2 réponses de 1 à 2 (sur un total de 2)
  • Auteur
    Réponses
  • #70747
    bebarth
    Maître des clés

    bonjour,
    Essaye comme ça :

    var cMessAlert="OK pour continuer ?" ;
    var cAlertTitre="TITRE DE L’ALERTE";
    // si oui
    if (app.alert({cMsg: cMessAlert, cTitle: cAlertTitre, nIcon: 2, nType: 2}) == 4) {
    // script à exécuter
    this.resetForm();
    for (var i=0; i<this.numFields; i++) {
    if (this.getNthFieldName(i).indexOf(" foto_af_image ")>-1) this.getField(this.getNthFieldName(i)).buttonSetIcon(event.target.buttonGetIcon());
    }
    }

    @+
    😎

    #70748
    Galactica
    Participant

    j’y étais presque .

     

    merci ça marche bien sûr.

Affichage de 2 réponses de 1 à 2 (sur un total de 2)
  • Vous devez être connecté pour répondre à ce sujet.