Acrobat v9 JavaScript Alert Box - any way to add space or line break after each array item?

I have a Document level Javascript used to identify blank required fields and is triggered on document actions, Print and Save. The script identifies the blank required fields, counts them, and outputs to an Alert box indicating the number of required fields blank and lists the fields by tooltip name. The script identifies the required fields by an asterisk at the end of each tool tip.
My question is there any way to add a space or a line break after the comma for each listed item?
Here is an image of the output where the listed items are all run together.
Here is the code:
function validateFields()
//a counter for the number of empty fields
var flg = 0
// count all the form fields
var n = this.numFields
//create an array to contain the names of required fields
//if they are determined to be empty
var fArr = new Array();
//loop through all fields and check for those that are required
// all fields that have a '*' in their tool tip are required
for(var i = 0;i<n;i++){
var fn = this.getNthFieldName(i);
var f = this.getField(fn);
//tool tip is the fields\'s 'userName' property;
var tt = f.userName
//test for the '*';
if(tt.indexOf('*')!=-1 && f.value == f.defaultValue){
//increment the counter of empty fields;
flg++;
//add the fields userName (tool tip) to the list of empty field names;
fArr[fArr.length] = tt;
//now display a message if there are empty fields
if(flg>0){
app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
else{
this.print();

Thank you! The alert box array items now have a line break, image below.  You know you have made my day and possibly several weeks as now I have more understanding about how to apply everything I have been reading in the Acrobat JavaScript guide and of course as soon as you pointed out using a "join", that triggered some old-days of working with Access and SQL queries.
I will work on the required attribute to see how I might reference it.  I am laughing at myself now - good luck to me in figuring it out as I was very stick-in-the-mud regarding the line break issue.
Thanks again and here is the result of the updated code:

Similar Messages

  • Is there any way to add AppleCare to an iPhone after the order when the phone has not been shipped yet

    Simple question. I purchased an iPhone 5, and added AppleCare to the cart. After processing the order, I found that AppleCare had been dropped from the cart. The phone obviously hasnt shipped yet. I have tried calling, but am unable to reach anyone. Is there anyway to purchase AppleCare after main purchase without going to an apple store. The closest one for me is 2+ hours away.

    My iPhone 5 Ordering Situation:
    Successfully submitted pre-order at 2:05am CST
    Realized I did not add AppleCare+
    Tried to add it as a separate product
    Unable to add AppleCare+ after submiting pre-order
    This Morning:
    I just got off the phone with an Apple representative.  He assured me that, once my iPhone 5 arrives on September 21, I will be able to: 1) call Apple and have AppleCare+ added to my iPhone 5;  2) go into an Apple Retail Store and have AppleCare+ added to my iPhone 5.  He said I would have thirty days from my device's ship date (September 21) to add AppleCare+ to it.  He also recommended that, if I wanted to have AppleCare+ added at an Apple Retail Store, I should make an appointment as soon as possible.  Because I was still concerned something might go wrong, the Apple representative emailed me a copy of my case number to use as a reference in case I have any issues obtaining AppleCare+ on September 21.
    Caveats & More Information:
    I ordered through the Apple Store app on my iPhone 4
    I live in the United States
    My carrier is AT&T
    I have a case number and repeated assurances from an Apple representative
    While your situation may differ from mine I do hope you're able to add AppleCare+ to your iPhone 5 once it arrives, either by calling 1-800-MY-APPLE or by making an appointment at your nearest Apple Retail Store.
    Best Wishes,
    Dylan

  • Javascript alert boxes are wrapped in Windows 7 with IE 8

    I can't count the number of JavaScript alert boxes I have throughout my systems and they have always made the transition between IE browsers from 6 to 8 without a hitch.  Without a hitch until I setup my first Windows 7 machine.  It is a 64 system that has both 32 & 64 bit IE browsers.
    It doesn't matter which of the two versions I use, the JavaScript messages that I have so carefully crafted with just the proper layout are now wrapped.  The resultant text in the new W7 popups is almost unintelligible because it is so badly scrambled/wrapped on the new white background.
    Since an alert box is simplicty itself, there is no way that I can think of to change the inherent size of the box.
    Has anyone else notice this phenomena???   If so, do you have a way around it short of redoing all of the text in the effected boxes???
    Len
    XP machine's JavaScript Alert popup in IE 8
    W7 machine's JavaScript Alert popup in IE 8 with wrapped text

    HMM I have the same problem. My researches suggest that the Zone.Identifier ADS is still being used for the internet zone, but not the Intranet zone. I too can get an intranet location out of IE, but not by querying Zone.Identifier eg using Powershell. This
    issue is present in XP as well as Win 7. It appears to extend to trusted zone ids.
    One hypothesis is that this is being stored in hidden form to prevent zone ids that decrease security being applied by malware.
    I had thought that maybe the intranet zone id was only present during download - but your experiment suggests otherwise.

  • Required = true, but Javascript alert boxes Does Not fire ?

    Hi,
    On my ADF Form (af:form), I have set my attribute : required = true on the adf faces page. (on the entity object, mandatory = true)
    But when I press Submit, I do not get any Javascript alert boxes fired, instead, I just see server side validation error.
    Why the Javascript alert boxes does not get fired ?
    Where is the setting ?
    Thank you for your help,
    xtanto

    Hi Frank,
    I use JDev 10.1.3.1 and it does not work.
    Yes , the required field similar to #{bindings.ManagerId.mandatory}
    I even try to change it to 'true', still no Java script alert, just the server side error.
    What is the possibility ?
    Thank you,
    xtanto

  • Javascript alert box due to inactivity

    Can anyone give me an example how to use javascript to display an alert box after a certain time of inactivity?

    After drag it is not going to "String name=request.getParameter("fname")".....i
    debugged and confirmed this.
    A similar issue was reported in IE9 also. Please find the link for more details
    https://connect.microsoft.com/IE/feedback/details/793230/javascript-alert-box-duplicated-if-moved-ie-9

  • When my Firefox language settings are fr_fr or fr_ca Firefox does not display the e with acute accent character correctly when it is displayed in a javascript alert box. However, it does display it correctly when my language settings are just fr. Please t

    Firefox does not display the e with acute accent character correctly from a javascript alert box when my browser language settings are fr_ca or fr_fr. However, it does it correctly when my browser language setting is fr. How do i get it to display e with acute accent and other iso8859 characters correctly in a javascript alert box when my browser language settings are fr_fr and fr_ca?
    == This happened ==
    Every time Firefox opened

    Use Unicode (UTF-8) for those characters.
    Then you will always be sure that they are displayed correctly.

  • I keep on forgetting ALT B (I think that's it). Is there any way to add options to the bookmark pulldown, specifically "Bookmark all Tabs" ?

    I keep on forgetting <ALT> B (I think that's it)?
    Is there any way to add the "Keep All Tabs" to the pulldown Bookmark menu?

    You can make all hidden menu entries visible with this code in userChrome.css below the @namespace line.
    * http://kb.mozillazine.org/userChrome.css
    * http://kb.mozillazine.org/Editing_configuration
    You can use the ChromEdit Plus or Stylish extension to have easier access to the customization files.
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #navigator-toolbox menuitem[class="show-only-for-keyboard"]{ display:-moz-box!important; }
    </nowiki></pre>

  • Is there any way to add a digital copy movie to an iPhone without syncing with my iTunes library? I use iCloud to sync, not iTunes. So when I go to sync movies, it deletes the other ones I already have loaded on the iPhone. Thanks.

    Is there any way to add a digital copy movie to an iPhone without syncing with my iTunes library? I use iCloud to sync, not iTunes. So when I go to sync movies, it deletes the other ones I already have loaded on the iPhone. Thanks.

    or is there a way to upload the digital copy to store in my iCloud account?

  • Any way to add 'Actions' tab on Service order Item level in ICWeb?

    Hello,
    We are implementing Service orders under CRM2007 Interaction Center.
    When we access the Service Orders through backend (t-code CRMD_ORDER), we see an 'Actions' tab on the Item Level which captures all the actions executed at Item Level. This tab is not available from the UI.
    Is there any way to add it to the UI? Note that it is available from both backend and UI at Header level but only from backend at the Item level.
    Thanks,

    Hi Deepali,
    I checked the TCODE CRMD_ORDER, there are buttons like AVAILABILITY CHECK on the item level.
    When you say it is an Item view on the Web UI, I believe it is a Table View.
    In Table Views you will have ON CLICK ACTION buttons next to the Row Selectors.
    For most of the views it will be available by default.Identify the Web UI component and open it through BSP_WD_CMPWB.Select the view and open the context node class and check if there is a method
    GET_OCA_T_TABLE.
    This method will have the code like this, for the buttons
      ls_one_click_action-id      = 'DELETE'.
      ls_one_click_action-icon    = 'delete.gif'.
      ls_one_click_action-text    = ''.
      ls_one_click_action-tooltip = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_IC_APPL/DELETE' ).
      ls_one_click_action-active  = 'X'.
      APPEND ls_one_click_action TO rt_actions.
    If your component also has these things, then you can simply add the ACTIONS column using Configuration Tool else you need to add this column by coding, redefine the method GET_OCA_T_TABLE and add the buttons.
    You need to explicitly create event handlers for the button click actions.
    Mostly,it should be available to you by default as it is available in SAP GUI.
    Regards,
    Masood Imrani S.

  • Is there any way to add PO no and  corresponding line item of PO in VL32N?

    Hello,
    The scenario is, we have created the IBD and deleted one of the line item and saved it.
    We went to VL32N and added the missing line item to IBD but PO number and corresponding item number of PO field of newly added line items are grayed out. We are not able to add PO number in VL32N screen.
    Is there any way to add PO number and corresponding line item of PO in VL32N screen of IBD? Our client does not want to create new IBD for same PO. He wants to add the line item in same IBD.
    Thanks,
    Milind
    Edited by: Csaba Szommer on Aug 27, 2011 4:52 PM

    Hello,
    This thread is pending since long time. No body has answered my question. Can any body suggest me?
    Thanks
    Milind

  • Is there any way to add a hyperlink to text in Messages.app?

    Is there any way to add a hyperlink to text in Messages.app? 
    I frequently share links via Messages and would like to have clickable text with a hyperlink beneath vs an ugly URL.

    Hi,
    In iChat and early versions of Messages this used to be CMD + K keys together
    This no longer works.
    It seems CMD + K is free as a Modifier keystroke.
    I would have  added it as an item in System Preferences > Keyboard > Shortcuts.
    The issue with that is the fact that there is also no longer an Menu item for it.  (so it does not work).
    You can add a URL and then Right Click and there is an Edit option but this only allows you to change the URL and not add a URL to existing unsent text.
    Right Clicking unlinked Text does not allow you to Edit it either (well there are some format option but not Hyperlinks)
    I can't find away around this.
    I know in the past the AIM service suffered from malicious code sent in Hyperlinks  so this might be the reason.
    9:56 pm      Monday; January 5, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Any way to add a link FROM HomePage TO iWeb?

    Any way to add a link FROM HomePage TO iWeb? The instruction I found in Help only discussed adding a link from iWeb to HomePage. Since most of my family already accesses my HomePage, I'd like to be able to add a link to the iWeb pages
    This is the only instruction I've been able to find in connection with this topic: "If you’ve previously published webpages using HomePage, those pages are still available at http://homepage.mac.com/YourMemberName. Websites you create in iWeb are available at http://web.mac.com/YourMemberName/iweb/SiteName. If you’ve created webpages using the .Mac HomePage feature, you can put a link to your old homepage on the first page of your new iWeb site. On your iDisk, your HomePage sites are stored in the Sites folder. Your iWeb sites are in the Web folder."
    Thanks
        I use both my Mac and my Dell

    I'll try this, but why in the world should it be so complex? I'll let you know if it works. but how do we tell Apple/Mac that this shouldn't be rocket science, but rather something that's done with the click of a button. They're both .mac software products. Why can't they talk to each other?
    B
        I use both my Mac and my Dell

  • Any Way to Add the Date to Pictures in PSE 4.0??

    I've just started using PSE 4.0, and am new to the forum.
    I don't see any way to add the date to a picture. I want to be able to add the date to the picture file for sending to a commercial source for printing. In my search in this and other forums, it appears there was a feature to add the date via Print|Show more options|Label|Date in PSE 3.0, but the "Date" seems to have been eliminated in 4.0.
    I've used a separate program (Exifer) for this in the past, but doing it one picture at a time is tedious at best, and very time consuming. With all the capabilities of PSE, I'm amazed that this isn't an obvious capability.
    Any advice would be greatly appreciated.
    Tks...Thksnow

    Barb -
    You are absolutely right. Unfortunately the Date function under Caption put an entire date and time stamp on the picture, which is not what I want. All I'm trying to do is put a date stamp on the picture similar to a dateback on a 35mm camera (yes I still have a few of those!!), which we really like to have for our family photo albums.
    The best I've figured out from a suggestion on another forum is to use the Watermark function under the same Process Multiple Files area. The downside is that I have to put the date in manually, as opposed to automatically from the file data, but it's better than doing it with another program.
    Bryan

  • Is any way to add custom fields?

    i need to display the all most 10 type of different information product large view..i used all default fields in product list if there any way to add custom fields or tags

    You may like to check out the article: Unlimited Product Custom Fields
    It's a paid subscription site, but worth a months subscription to learn some neat tricks.

  • Any way to add fields to ESS screen without coding?

    Hello Experts,
    I am attempting to add a single field - Religious Denomination (KONFE) to the Personal Data ESS screen for Great Britain.  It is included in the standard screen for maintaining Personal Data in PA30 but for some reason not on the ESS screen.
    Is there any way to add this field to the ESS screen without having to modify the code of the ESS screen in the NWDI?
    Thank you,
    Mike Wellens

    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=profile&title=ESSPersonalInformationUIenhancementwithoutmodification&decorator=printable
    You can check via V_T588MFPROPC, but not sure this will show as it is not in structure

Maybe you are looking for