4 Replies Latest reply on Sep 19, 2016 7:29 AM by cbishop01

    Multiple Alerts on one Dialog?

    cbishop01 Level 2

      Ok just recently got my Dialog to display the amount of corrections. Thanks to a few People on here.  And its great.  I'm wondering how i can get it to tell what all is changed on one Dialog.  Ex...

      I thought i saw on here before about that.  However its been a while ago and may not have been on this forum.

      Highlights Changed:  3,

      Double Spaces: 32

      and so on.

       

      It would be less cluttered if it was Listed Vertical and not Horizontal.  Easier to read i mean.

       

      can it be added to the below?

      alert("Results:"+",   "+numberOfChanges +" ,  "+"Changes have been made")
      

      Thanks

        • 1. Re: Multiple Alerts on one Dialog?
          Loic.Aigon Adobe Community Professional

          Maybe something like

          var errors = ["error 1","error 2","error 3"];
          alert("So many errors\r"+errors.join("\r") );
          

           

          Loic

          1 person found this helpful
          • 2. Re: Multiple Alerts on one Dialog?
            cbishop01 Level 2

            This works.  Kinda.  I typed it in but cannot get my information to display.  For ex.  below is how i had it. This way will be way cleaner to use so Id like to use this instead of the way i have to do it.  So can you show me where i'm going wrong?  I've also tried "+numberOfChanges+".

             

            var errors = ["numberOfChanges", "CCH", "error 3"];
                    alert("Results:\r"+errors.join("\r") );   // This one displays the text but not the numberOfChanges. 
            

            Screen Shot 2016-09-19 at 8.48.32 AM.png

            Here is what i have to do to make it work.  Its fine but it is going to get really long and confusing.

            alert("Results:\r"+""+numberOfChanges +" ,  "+"Find and replace\r"+CCH +" ,  "+"Contains\r");
            

            Screen Shot 2016-09-19 at 8.51.03 AM.png

            • 3. Re: Multiple Alerts on one Dialog?
              Skemicle Level 3

              remove quotations.. quotations set the text as a String.. you don't want that, you want the variable..

               

              1. var errors = [numberOfChanges, CCH, "error 3"]; 
              2.         alert("Results:\r"+errors.join("\r") );

               

               

              1 person found this helpful
              • 4. Re: Multiple Alerts on one Dialog?
                cbishop01 Level 2

                Thank you very much.