How to get rid of extra space at beginning of multiline field

I have a form with both one-line and multiline fields. The one-line fields are fine, and the multiline fields look fine in LCD. However, when I open the form in Acrobat Pro, each multiline field has a blank space already in it! I checked with a user, and the same thing happens when she opens the form in Reader.
I verified that this is a problem with multiline fields by changing a one-line field to multiline. As soon as I did, the extra space appeared in Pro & Reader.
Has anyone else had this problem, and if so, what did you do about it?
Thanks!
Kathryn

P. S. Since I had a number of multiline fields on my forms, I decided to venture into uncharted LCD territory and create a custom function which I could use as needed. What I thought would be a simple task ended up taking four hours. I'm posting what I discovered here in the hope that it may save someone else time :)
First of all, apparently you can't create reusable functions in FormCalc, but only in JavaScript. You have to store them in a Script Object in order to make them available to the fields in the form. (Create the script object by right-clicking on the form in Hierarchy View and choose Insert Script Object).
Converting the FormCalc function to JavaScript was an adventure. Long story short, this is what I ended up with:
function space_bug_fix(field_name, field_contents)
field_contents = escape(field_contents)
//escapes the space to its URL encoding (%20) so the script can recognize it
if (field_contents == "%20") {
xfa.resolveNode(field_name).rawValue = "";
//if the field contains only %20--in otherwords, the buggy space--delete it.
I spent a while trying to get getField() to work, but apparently it doesn't work in the LCD xfa environment. You have to use resolveNode().
Accessing the function was not straightforward either and also required use of the resolveNode function. This is the JavaScript I finally got to work:
xfa.resolveNode("form1..custom_functions").space_bug_fix(this.name, this.rawValue);
(custom_functions is the name I gave the script object). And as a reminder, the language in every event where this function is called has to be set to JavaScript.
Kathryn

Similar Messages

  • How to get rid of extra spaces while TRANSFERing itab to PersentationServer

    Gurus,
    we have a program which downloads the internal table to server using the TRANSFER statement.
    open dataset ---  BINARY MODE
    loop at ITAB.
    transfer ITAB-line to g_file.
    endloop.
    close dataset.
    This works fine.
    The new requirement is we need to get rid of the spaces that are padded at the end.
    ITAB data is RANDOM. The actual length of ITAB is 128 chars per line. Every 120 chars will have a eof char ( delimeter)
    so the last line of ITAB may have 1 or 2 delimeters in it. if it is just 1 we can solve it using SEARCH and TRANSFER---length
    if it gets 2 delimeters ?
    Thought????
    Any help is appreciated.
    Regards,
    Pete.

    Andreas,
    Thank you for the reply.
    I did use that. What I meant to say is when you have more than one EOL char in last line how do you find the last EOL and transfer upto that length.
    I used DO---ENDDO and checked for each existance of the EOL char. I am not pleased with what I am doing.
    Is there any better way to this ?
    Version - 4.6c.
    Regards
    Pete.

  • How do I get rid of extra space in the toolbar section?

    There is a blank space between the Navigation Toolbar and the Tabs. It is the same height as the other Toolbars, and is very annoying. How do I get rid of this space?
    I tried pasting in a screenshot to show what I mean, but this form won't accept it.

    Sorry thought you had placed them both on the same toolbar.
    What you appear to have a a bookmarks toolbar without any bookmarks.
    Make sure that you have the check mark present for the bookmarks toolbar
    View > Toolbars
    Use "Ctrl+B" to bring up the bookmarks in the sidebar.
    You should have three major folders "Bookmarks Toolbar", "Bookmarks Menu" and "Unsorted Bookmarks".
    If you have no bookmarks or folders in the "Bookmarks Toolbar" that would be one reason for it to be blank, another and the only other one I think is currently possible through Firefox itself is that you don't have the wording "Bookmarks Toolbar Items" in the row when in customize, look for an item marked "Bookmarks" -- there are two such items you don't want the white star on a black background and drop-down, you want the the one with blue symbol on the right hand side -- drag it to the bookmarks toolbar, be careful in dragging you might drop it in the wrong toolbar.
    If that doesn't work use the "Restore Default Set" and then you have to re-customize your toolbars (but you placed a picture here that you could work toward).
    See picture at http://kb.mozillazine.org/Toolbar_customization_-_Firefox
    for during customize with "Bookmarks Toolbar Items" showing on the toolbar.]
    My own customizations seen in this picture
    * http://dmcritchie.mvps.org/icons/fx4toolbars.png
    :are described in the following
    You can make Firefox 4.0.1 and '''Firefox 5.0''' look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]
    and most of the major styling changes like color borders around tabs for status, and bookmarks bar with blue folders and red bookmarks are in the styling part items # 41 -45 (46 if you have multiple profiles).

  • How to get rid of white space in EPS embedded in Word for letterhead template?

    Does anyone know how to get rid of the white band in the bottom of this letterhead?
    I embedded the EPS image (done via Illustrator) as a watermark in the header section of MS-Word.
    It looks fine in the Word version, but as soon as I try to print the document - either via Word or via a PDF - that white
    band on either side of the footer and underneath it keeps showing up. I can't get rid of it. I tried this on a PC and a Mac
    and those white bands won't go away.
    If anyone could let me know how to resolve this problem, I would be eternally grateful!
    Thank you.
    NZB

    If you want this to bleed, then you will have to print on oversize paper and trim or find a printer that will print borderless.

  • How to get rid of white space above footer in Muse

    I have a website that has several random pages where different sizes of white space will appear above the footer even though I did not put them there. How can I get rid of this empty white space?
    This is the page in Preview Mode:
    This is the page is Design Mode:
    This is the Master page in Design Mode:
    This is the Site Properties:

    Hi
    As I see the white space you refer to is as shown below, am I correct?
    Could you please get to this page in muse project and "select all items on a page" and check if there's any rectangle or div placed at the bottom ? If yes ! try removing the same and re-publish the site and check if that helps.
    Looking forward to your reply.
    PS : Please uncheck the sticky footer option in Site properties and check if it works.

  • How to get rid of extra iTunes credit?

    Okay, I know HOW to change the iTunes Store's countries, but I have an issue with my remaining store credit. I have £0.21 left to spend, and I cannot change the store to the US until I spend it. Is there any way to simply get rid of the extra credit?

    String's .trim method will probably be useful here:
    String path = System.getProperty("propDir").trim();

  • How to get rid of "other" space on iphone

    My phone has 3.64 of "other" space.  How do I get rid of it??

    You don't get rid of it as some of it is neccessary.
    You can reduce the corrupt files by restoring your iphone.

  • How to get rid of extra plugins tab on Firefox 3.6 startup

    After a no-error crash Firefox 3.6 came back with extra tab. Tried every listed method could find but this tab could not be stopped from coming up when starting the program.
    Help.
    Don't want to upgrade!!! Everything was working fine until this. I changed nothing. Was working when all of a sudden it disappeared - no warning, no error message. When restarted instead of coming up with the usual list of tabs to restore, it came up in a new tab with a list of plug-ins it wanted me to update.
    Would like to get back to where it was before crash. Some of the plug-ins can't be upgraded and were fine before this happened.
    I do a lot of legacy work - all the way back to Windows 3.1, 4.0 along with DOS, and Mac OS 7, 8, & 9. I have two machines that are dedicated to hardware and software that are over 15 years old, whose output is in the same time, and at least the quality, of today's machines - These were high end machines in their day. Certain functions on any machine are limited by physics and mathematics, making these ol' clunkers comparable to today's in speed and quality. On a third is software whose functionality was never duplicated, whose producers are extinct as companies. Doing this kind of work has unearthed a dearth of folks who need legacy support, who don't want to (They are my customers. They are right! I can only question so much of what they want, very tactfully and carefully.), are not going to, or especially, can't afford to, upgrade, especially after hearing of costs and problems. I see a lot of early versions of Firefox, as well as other browsers, especially Netscape. I even keep one PC that runs DOS in order to work with folks who still use DOS based programs that work, especially POS stuff.
    That's why I'm retro. I deal with fossils which include paleo-Firefox.

    I just want what I had a few days ago back. Everything was working fine. I stay with the old version because it works for what I do. Foreign concept in today's world.
    Our gripe is that we are having upgrades forced on us that don't increase our productivity and cause losses of time and money in the process. None of this is free. Time is money. Switching to Windows 7 has cost me more money than I could afford, for instance. Upgrading Firefox throws out the use of some plug ins - they don't work on the newer versions and can't be upgraded - function gone.
    The Macs I still maintain are classic examples of upgrades not being useful forward steps for what I do. There are several programs were made for them that once their operating system upgraded became unusable, even in emulation. Their ease and functionality have never been reproduced in today's software. The old browser works fine on them today. I don't need the new features. I use VMWare in Windows 7 to run a program that, according to the maker, upgrades for the "insignificant" price of $999. That ain't chicken feed! It's the only way it will run. There was no problem with this on XP.
    In addition, I use these old machines in order to work with customer's old systems. When there are problems, a lot of what they have won't run on the newer machines at all. We get stuff so old we have to build machines to run it on as needed. And yes, a nightmare in extinct data, file formats - fun, fun fun.
    Yes, we are helping folks stay in the stone ages of computing. We can do no more than advise them on what is available and how it works. The final comedown is theirs since they are the people paying the money. On my machines I am the final say and I too keep legacy equipment both for working with customer problems and as I said, I have old software as well as hardware that does not work on today's OS and still works fine and is too costly and troublesome to upgrade as well as offering no improvement in quality and speed of output.
    Theory behind us now, how about some answers for the original question. Only in an ideal world is upgrading smooth. We don't live in one, nor would most of us want to. We are individuals.

  • How To Get Rid Of White Space Around Footer

    Hi,
    I am really new at this (still trying to get a handle on HTML, CSS, etc.) and I need help fixing the footer in a template that I've created in Dreamweaver (CS5).
    Right now, my main background image extends the full width of the page with no problem. However, my footer won't do the same thing. Instead, there are white bars on either side of it and when I test the page in a browser, I keep finding that no matter how small I make the browser window, the footer still won't extend to the full width of the page - I just keep getting the white bars on either side (the footer does this in Dreamweaver, Internet Explorer, Chrome, Firefox, etc.).
    I created the footer using CSS, made its width 100%, and made sure that both the margins and the padding are 0. Here's what the CSS looks like for it:
    #footer {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 11px;
              color: #464646;
              background-image: url(../Images/Other/Footer.jpg);
              background-repeat: repeat-x;
              text-align: center;
              width: 100%;
              margin-right: 0px;
              margin-bottom: 0px;
              margin-left: 0px;
              padding-right: 0px;
              padding-bottom: 0px;
              padding-left: 0px;
    And here's what my HTML coding looks like for the entire template:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Template</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    body, td, th {
              font-family: Arial, Helvetica, sans-serif;
              color: #000;
    body {
              background-color: #FFF;
              background-image: url(../Images/Other/Main%20Body%20of%20Website.jpg);
              background-repeat: repeat-x;
    </style>
    <link href="../CSS/Allegeon Style Sheet.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    <style type="text/css">
    a:link {
              text-decoration: none;
    a:visited {
              text-decoration: none;
    a:hover {
              text-decoration: underline;
    a:active {
              text-decoration: none;
    </style>
    </head>
    <body onload="MM_preloadImages('../Images/Navigation/Rollover/Services Rollover.jpg','../Images/Navigation/Rollover/Hands On Rollover.jpg','../Images/Navigation/Rollover/Onsite Rollover.jpg','../Images/Navigation/Rollover/Contact Rollover.jpg','../Images/Navigation/Rollover/Home Page Rollover.jpg','../Images/Navigation/Rollover/Learning Rollover.jpg')">
    <table width="681" border="0" align="center" cellpadding="0" cellspacing="0" summary="Table applied for page structure.">
      <tr>
        <td width="113"><div align="center"><a href="../Site Pages/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('index','','../Images/Navigation/Rollover/Home Page Rollover.jpg',1)"><img src="../Images/Navigation/Normal/Home Page Normal.jpg" alt="index" name="index" width="101" height="64" border="0" id="index" /></a></div></td>
        <td width="113"><div align="center"><a href="../Site Pages/Services.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Services','','../Images/Navigation/Rollover/Services Rollover.jpg',1)"><img src="../Images/Navigation/Normal/Services Normal.jpg" alt="Services Link" name="Services" width="101" height="64" border="0" id="Services" /></a></div></td>
        <td width="113"><div align="center"><a href="../Site Pages/Hands On.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('HandsOn','','../Images/Navigation/Rollover/Hands On Rollover.jpg',1)"><img src="../Images/Navigation/Normal/Hands On Normal.jpg" alt="Hands On Link" name="HandsOn" width="101" height="64" border="0" id="HandsOn" /></a></div></td>
        <td width="113"><div align="center"><a href="../Site Pages/Learning.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Learning','','../Images/Navigation/Rollover/Learning Rollover.jpg',1)"><img src="../Images/Navigation/Normal/Learning Normal.jpg" alt="Learning" name="Learning" width="101" height="64" border="0" id="Learning" /></a></div></td>
        <td width="113"><div align="center"><a href="../Site Pages/Onsite.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Onsite','','../Images/Navigation/Rollover/Onsite Rollover.jpg',1)"><img src="../Images/Navigation/Normal/Onsite Normal.jpg" alt="Onsite Link" name="Onsite" width="101" height="64" border="0" id="Onsite" /></a></div></td>
        <td width="116"><div align="center"><a href="../Site Pages/Contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','../Images/Navigation/Rollover/Contact Rollover.jpg',1)"><img src="../Images/Navigation/Normal/Contact Normal.jpg" alt="Contact Link" name="Contact" width="101" height="64" border="0" id="Contact" /></a></div></td>
      </tr>
    </table>
    <!-- TemplateBeginEditable name="LogoRegion" -->
    <table width="681" border="0" align="center" cellpadding="0" cellspacing="0" summary="Table applied for page structure.">
      <tr>
        <td width="280"><img src="../Images/Header Logos/Home Page Logo.jpg" width="280" height="214" alt="Allegeon Logo" /></td>
        <td width="401"><img src="../Images/Header Images/Baltimore Web Landscape.jpg" width="401" height="214" alt="Baltimore" /></td>
      </tr>
    </table>
    <!-- TemplateEndEditable --><br />
    <!-- TemplateBeginEditable name="BodyRegion" -->
    <table width="681" border="0" align="center" cellpadding="0" cellspacing="0" summary="Table applied for page structure.">
      <tr>
        <td> </td>
      </tr>
    </table>
    <!-- TemplateEndEditable -->
    <p id="footer"><br />
      <a href="../Site Pages/index.html" title="Home Link">HOME</a>  <span class="divider">l</span>  <a href="../Site Pages/Services.html" title="Services Link">SERVICES</a>  <span class="divider">l</span>  <a href="../Site Pages/Hands On.html" title="Hands On Link">HANDS ON</a>  <span class="divider">l</span>  <a href="../Site Pages/Learning.html" title="Learning Link">LEARNING</a>  <span class="divider">l</span>  <a href="../Site Pages/Onsite.html" title="Onsite Link">ONSITE</a>  <span class="divider">l</span>  <a href="../Site Pages/Contact.html" title="Contact Link">CONTACT</a><br />
      Copyright © Allegeon. Designed by Allegeon. Developed by <a href="http://www.KatherineGahs.com/" title="Designer Link" target="_blank">Katherine Gahs</a>. </p>
    </body>
    </html>
    Any help you can give me would be really appreciated!!! Thank you!

    body {
    margin: 0;
    padding: 0;
    If this is placed in the header html on a master or individual pages in Muse itself the problems appears to fix for me so one does not have to edit the HTML every time.

  • How to get rid of blank space showing above my pages

    Hi:
    I built my site dyingforthetruth.com using Muse (thanks, it's pretty nifty!), following a video tutorial you provided.
    I've ended up with a blank space showing above all pages, and much trying with the blue lines and rebuilding my header strip has NOT succeeded in fixing it.
    Here's a snapshot of the top left part of the "main" master, showing the blue lines and the space at the top.
    You can see what it looks like on the web by going to the site URL (dyingforthetruth.com).
    Can you please tell me how to fix this. I find it a bit strange to see all my pages for this site coming up in all 5 browsers I've tried (IE, Chrome, Firefox, Opera, Safari) with a pronounced gap at the top of them all.
    Thanks!

    Go to Page> Page Properties and on the "Padding" section set "Top" to 0. That should do it.
    If you are on a master page make sure that the top blue arrow is at 0. That arrow controls the top of page, and you need to have a padding of 0 for what you want.

  • How to get rid of empty space in module pool screen?

    Hello Experts,
    In module pool, I have 2 table controls inside 2 separate boxes in the same screen. Based on some conditions I hide the first table control. It's all working fine. But the space where first table is created remains blank in the screen. I don't want that.If the first table control is hidden the second table control should occupy the empty space. I do not want empty space in the screen.
    How can I acheive this.Is there anything I can set in the screen attribute level.
    Thanks.
    Yasin.

    Hi Yasin,
    As you said you have 2 sub screen areas and also 2 subscreens.
    when hide the First subscreen from First Subscreen area, you need to assign the second subscreen on to the first subscreen area and a dummy subscreen on to second subscreen area, this is a kind of work around and bit tricky playing with screen elements
    in Top Include
    data dynnr type sy-dynnr value '100' " your default Subscreen number
    in PBO
    call subscreen sub1 including sy-repid dynnr1 " First Sub screen area
    call subscreen sub2 including sy-repid dynnr2 " Second sub screen area
    in PAI
    module call_dyn_number.
    in program.
    case ok_code.
    when 'HIDE'. " When you hide the first table control
    dynnr1 = '200' " This is your second table control containing Screen number
    dynnr2 = '300'. "This is a Dummy Screen Number which doesnt contain any screen elements so output is plain
    " Note: This is a crude IDEA only as you try to implement you need to adjust this for the expected outcome
    " I implemented this earlier but dont have complete ref at this moment
    endcase.
    Hope this serves your purpose
    Cheerz
    Ram

  • How to get rid of extra browser support files without hosing the web help

    I produce web help for a a web app that is restricted to IE.
    When I generate web help, RH spits out dozens of files that support
    help within other browsers. We tried deleting these "extra" files,
    but it hosed the help. Does anyone know of a way to either 1)
    generate without these files or 2) remove the files without
    breaking web help?

    Welcome to our community, Karen
    If you took them out and it hosed the help, it would seem
    they are actually serving *SOME* function, no?
    I'd simply ignore things and just accept the fact that you
    get a lot of files with WebHelp.
    Cheers... Rick

  • How to get rid of extra background window

    New to CS6, which opens an extra blank background window/container that stays open, blocking desktop, when .psd is closed.  Hate it... how to make it stop?

    Thanks. Now I know what its called...

  • How to get rid of extra bar that comes with new update?

    I am a huge Mozilla fan and have used FireFox for many years now. The new update messed up the way I had my browser but I found an addon that let me move things where I wanted them once again. There is one thing I have been unable to fix though - the empty bar underneath the tabs that stretches horizontally for the entire screen. I have unchecked the bookmarks toolbar, addon toolbar and additional toolbar, but whatever bar this is it won't go away.
    I completely understand the need for the UI redesign and am not complaining.
    I uploaded a picture here.
    http://imgur.com/h0f9NRE
    As you can see, I like the minimalistic look and this bar is trampling upon that look. Once again I'm not complaining about the new UI, but will this bar be removable in a future update?

    That's not an extra bar; it's the navigation toolbar that's always been there.
    # Open the Add-ons Manager (Ctrl+Shift+A; Mac: Command+Shift+A), then the Extensions category.
    # Next to [https://addons.mozilla.org/firefox/addon/classicthemerestorer/ Classic Theme Restorer], click the Options button.
    # On the Main tab, under General UI, check "Hide navigation toolbar".

  • How to get rid of white space when creating a PDF file in dynamics ax 2012

    Hello,
    In Dynamcis AX 2012 we are creating an invoice that is first printed to the screen, but when we convert the invoice to a PDF, white space occurs that our customer cannot have.
    We opened a ticket with Microsoft with the following scope layout:
    As discussed, I am providing you a copy of our scope agreement for your issue.
    Issue Definition: When rendering an SSRS report to screen, report displays as expected. However, when the same report is sent to PDF or printer output, a large white space appears between the header and body of the report.
    We've examined every possible setting in the report design properties using Visual Studio, and nothing has been successful in correcting this behavior. Our client has indicated the proper rendering of certain reports is extremely critical to their business relationships with their clients. They've told us that this problem must be fixed or they cannot go live.
    Scope Agreement: Provide information on the issue of white space showing between the header and body of the report. May have to rescope issue depending on investigation.
    We will now begin working together to resolve your issue. If you do not agree with the scope defined above, or would like to amend it, please let me know as soon as possible. If you have any questions or concerns, please don't hesitate to contact me.
    So after we worked with MS for a bit and gave them more information, the final conclusion came back from them as follows:
    Message: Hello,
    When you examine the report, is the report hiding sections during the print out based on some data condition? IF so, this is going to be returned as By Design. Our current reporting framework will reserve space for the controls even if they are not visible when the report is printed to file (xps, pdf, may even do it if exported to Excel). If this is the case, we don't have anything we can do about it. Development is aware of this issue/limitation, but at this point, we have no workaround for it.
    So the question is:  Have you ever ran across this issue and does Adobe have a potential solution as Micrsoft does not.  Or do you have a potential work around.
    Thanks!
    Allen Shannon

    If you want this to bleed, then you will have to print on oversize paper and trim or find a printer that will print borderless.

Maybe you are looking for