How to remove line empty when the data are not for a text field

I created a PDF with Acrobat Pro 11 model. This model has an address of the employer with the address line 1, address line 2, city, State, zip code, country. The requirement is to show address line 1 and line 2 address in separate lines and address line 2 cannot be present always. If address line 2 is not present then the PDF should not show a blank line. How do I get there?

These data are populated through xml by a publisher of BI. New line characters do not work.

Appreciate your help on this.

Hi sprphoto123,

If you do not enter data in the text field 2 then you can set the form field property to is not mandatory, but if you want to disable the 2nd text field, you can add a check box in front of it to turn off the field. This can be achieved using JavaScript.

Kind regards

Nicos

Tags: Acrobat

Similar Questions

  • How can I create a chart that creates new series each year when the data are not collected on a daily basis?

    I collect numbers "occasionally" of my solar system and to create a standardized chart that shows that the generation on an annual basis, so I can compare fall in the fall of each year, etc..

    Because the information is not strictly 'daily' (just whenever I get to it), I don't know how it normalize for several years.

    For example, if I had

    Date - Kw/day

    15/01/10 - 14

    03/04/10 - 18

    18/04/10 - 17

    01/06/10 - 19

    21/09/10 - 15

    03/12/10 - 9

    07/02/11 - 13

    02/05/11 - 16

    17/08/11 - 18

    01/11/11 - 12

    02/11/11 - 12

    05/01/12 - 9

    04/06/12 - 12

    and so on.

    What I'd like to see is a line graph for each year from January to December with these datapoints on it. I have much more "incremental data" that I presented above, but it's on "random dates" during the last 8 years, and I'm just trying to see how each year compared to other years.

    To be at the front, I tried to understand how this in Excel as well, but he could not understand where the other.

    DRM for any tips/tricks/tips!

    Steve

    This might work for you...

    I placed your data in a table named "Data."

    Create a second (in this example, titled 'Table 1')

    In the table 'Table 1' months are in the first column and the first row (which is a header row) contains the years - add columns to add new year:

    B2 = if (SUMIFS (data: $B, data: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" "") > 0, SUMIFS (data: $B, given: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" ""), "")

    It's abbreviation dethrone select cell B2 and type (or copy and paste it here) the formula:

    = IF (SUMIFS (data: $B, data: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" "") > 0, SUMIFS (data: $B, given: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" ""), "")

    Select copy of cell B2

    Select the cells B2 at the end of F13, dough

    now select cells A2 through F13 and add a graphic (the XY scatter diagram)

    Add new year add one (or more) new columns for "table 1", then add the year to the top:

    Now alone, click the chart to activate the chart.  then click on the button 'change data references '.

    now, drag the data reference control handle to the right to add the new year to the table:

    You can add several years to the time, so you don't have to it very often

  • Display an empty table row of data when the data is not present

    Hello

    Can u please tell me How to display a row of data empty table when the data is not present?

    in my case the column header appears as the code below.

    <? If: SD_Type_Data_ID3 = 'KH '? > <? If: SD_SpecialHandlingCode_SPHD_ID17 = 'H '? > <? for each: Supplemental_Data_S17? > <? end if? >

    can u pls help me.

    Thanks and greetings

    Sylvie Kumar

    You can insert a fictitious line. Have an if condition in it, to show only when condition does not satisfy.

  • If time machine is incremental how it removes previous versions when the disk is full, without breaking the chain, so do not be able to restore all changes since the first full file

    If time machine is incremental how it removes previous versions when the disk is full, without breaking the chain, so do not be able to restore the file with any changes made since the full backup first file...

    If the TM drive storage is full TM automatically deletes the version the oldest files for the new incremental backups can be made. Thus, in this case you cannot restore the versions that TM deleted because it takes more storage.

  • Add the date and time to a text field when the form is submitted

    Is it possible to add the date and time to a text field where the user is clicking the button of form submit?

    I created a custom send form button and do not use the distribution process to collect the results and would like to have a time stamp of when the form has been sent.

    Thank you!

    Sure. Before your submit order add a command run JavaScript with this code:

    this.getField("SubmitDate").value = util.printd ("mm/dd/yyyy hh: mm", new Date());

    Change the field name or date that required such boss.

  • Update fail, have 3 updates that load, but then the icon appears again advise that even the dates are ready for loading.

    I have Windows XP Home Edition Version 2002 Service Pack 3.  I have 3 updates that load, but then the icon appears again advise that even the dates are ready for loading.  Is it possible that updates sent me are for the 2003 Version?  Whenever I update these 3 updates, a window shows updated loading successfully, but they still remain as an icon in my taskbar?

    CrystalBall © SEZ...

    See the RESPONSE message in this thread-online http://answers.microsoft.com/thread/49ed2fe1-6782-4498-814a-ccfa6ec1dfc9

  • Field containing average function works only when the data are engaged on the same page. Does not work for fields on other pages.

    I'm having a problem with a field defined to calculate the average of eleven points fields (points 1 to 8 on page 1-9-11 on page 2). My original question was that it could exclude fields of points when they do not have information entered and adjust the average calculation (number of "divided by") accordingly.

    I had someone write JavaScript code for him, but I just found a small problem I don't know if it's something in the code or what the person who originally wrote the script cannot understand it either and suggested that I have post here.

    The middle area (located on the 2nd page of the pdf page two) seems to work exclusively with precision if at least one of the points of the fields on the 2nd page, 9, 10 (and 11) are engaged with the data. No values entered on the first page and only the first page, are for some reason any dividing by a more than expected. For example, if I fill the boxes 1, 2 and 3, it divides the total by four. If I filled just box 7, it halves. If I fill all 8 boxes on the 1st page, it divides by nine. It is corrected as soon as I get the points in one or more of the three boxes on the 2nd page points, suddenly the overall average is accurate. But if boxes 9, 10 and 11 contain no points, then the average is still inaccurate because the number of ' divide by "he uses is one more than what it should. I can't understand how to attach the form to this post, so I downloaded on Dropbox: Dropbox - used Evaluation.pdf.

    Under the direction of State: javascript came work to exclude the empty boxes when the points are entered in one of the three points of fields on the 2nd page (and more), but the average function is not accurate because it adds 1 to the number of ' divide by "in the calculation of the average If the points are only entered into the fields on the 1st page.

    Here's the code I entered in the 'Custom calculation Script' box in the 'Calculate' tab of the Properties menu of Test field:

    Initialize variables

    var num = 0;

    var sum = 0;

    Browse the input fields

    for (var i = 1; i < 12; i ++) {}

    var f = getField ("points." + i);

    If {(f.valueAsString)

    increment the counter to non-empty field

    NUM ++;

    Add the value of the running total field

    sum += + f.value;

    }

    }

    Calculate the average

    If {(num)

    Event.Value = sum / num;

    } else {}

    All fields are empty, then the empty value

    Event.Value = "";

    }

    I do not see that. Add the code of script debugging will display the results that each field is completed:

    Initialize variables
    var num = 0;
    var sum = 0;

    Browse the input fields
    for (var i = 1; i)< 12;="" i++)="">
    var f = getField ("points." + i);
    If {(f.valueAsString)
    increment the counter to non-empty field
    NUM ++;
    Add the value of the running total field
    sum += + f.value;
    }
    }
    Debug - display results as the form is filled;
    Console.Show
    Console.println (sum + "/" + num + "=" + sum/num);
    end of debugging;
    Calculate the average
    If {(num)
    Event.Value = sum / num;
    } else {}
    All fields are empty, then the empty value
    Event.Value = "";
    }

  • How to change existing keywords when the site is not in the bookmarks bar?

    I've implemented several shortcuts keyword for sites that I use frequently. Now, how can I change the keywords or URLS when the site is not in the list of bookmarks? Is there a master file Firefox for these access which can be edited by the user? Or another way to get to them?

    Not sure if it's the same on Mac OS x, but it is how it is done under Windows and Linux versions of Firefox.

    Bookmarks > organize bookmarks

    Highlight the bookmark in the right pane, and then click more at the bottom to see the keywords and Description fields for this bookmark.

  • How to find vCenter virtual cluster large when the services are not running?

    Does anyone have advice for locating vCenter in a cluster, when his services are not running?

    For example, I have to restart vCenter and its network is having issues.  I need to go to the host ESX (i) is on and open the console to get to the virtual machine.  But to find that host is on can sometimes take a long time, because I have to log in to each HOST and see if it is the host where vCenter.

    Does anyone have any advice or suggestions to make this process easier?  It is not so important, but just curious to know what others might suggest.

    Thank you.

    I used PowerCLI and

    to connect-viserver esx1, esx2, esx3

    connect to all the ESX(I) hosts and then run

    Get - vm vCenterServerName | Select the name, the host

  • How to remove e-mail messages. No icon in my tray tasks and how to remove several e-mail messages that are not consecutively

    First of all, I can't find a top of icon delete or bottom or anywhere. Secondly, when I'll be that solved how can I remove a number of emails that are not in consecutive order.

    You can click with the right button on the e-mail toolbar, select Customize, find the Delete button and drag it to the toolbar.
    You can activate the message pane by using the F8 key and use this header button.
    You can right-click on the message and select Remove.
    You can also use the Delete on your keyboard key.

    To select the messages you use standard Windows selection methods.
    Hold down the control key while clicking on messages to select random messages.

  • NEW_FORM opens in the SAME session, but the data are not visible

    We have a requirement like this:

    -Our menu calls other forms using NEW_FORM
    -In the KEY OUTPUT of all forms of our that we call the form of menu using NEW_FORM
    - We do.
    -In the menu (form) before we call a form using NEW_FORM insert us a record in a table. We have no ' commit.
    -Normal form of an application is open (e.g. billing form)
    -We close the form of billing.
    -KEY-RELEASE of billing forms call the menu using NEW_FORM (menuform) form
    -In the Menu when new forms - form example, we must now read the inserted record and get the values of line
    -Read us the data, BUT the problem is that the line is not there.

    I tried this:
    -I put debug code to see if the form menu and other forms will open in the SAME session.
    - And Yes, 63325/138/79687 what we get for sid, serial #, audsid from V$ SESSION for all other forms and
    -the form of menu
    -This means that all open forms (forms app and form menu) using NEW_FORM opens in the SAME session.

    My question is:
    - If forms will open in THE SAME SESSION, why is - our inserted line is not visible when we come back to the
    switchboard form?
    -If we are COMMITTED to the line, then it becomes visible.
    -The problem is that we cannot make according to the requirement of the app.
    -We need her to be visible ONLY for the connected to the users session.
    -I tried using a GLOBAL temporary table and the result is the same as above.

    Any advice would be greatly appreciated since our application is based on the insertion of a record in the form of menu, calling from any other form of app, and when the menu form is called again this line must be visible to read.

    Published by: Channa 18 April 2010 22:44

    By default, the NEW_FORM did a restore when it is called, your insertion will simply be rollbacked.
    Some ideas of what you can do:
    -Using a GLOBAL TEMPORARY TABLE with ON COMMIT PRESERVE, and then issue a commit in your code after insertion
    -Use a context in the DB to store data
    -Use a package in the db to store data

  • My button mute in my launch buttons fast remains red when the speakers are not dumb.

    I have a Pavilion dv7-3165dx with win 7 Home premium pre-installed, and recently, I noticed that my button mute in the quick launch buttons stopped to change to white when the speakers are reactivated. I tried to install the latest drivers for the buttons to quick launch, which did not work. Someone solved a similar problem (button remained white when cut) by installing something, it calls the Total of HP Advisor and his advice, but I can't find the program.

    IF what I post solves your problem, please, click the button 'Problem solved' on my post.
    Oh, and if I helped you, by clicking on the star of "Congratulations" on my post would not hurt my feelings ether.

    Hello

    Try download and reinstall the IDT Audio driver on the link below.

    FTP://ftp.HP.com/pub/SoftPaq/sp48501-49000/sp48830.exe

    Once installation is complete, restart the computer and see if it has no effect.

    Kind regards

    DP - K

  • the data are not consolidating

    Hello

    I moved 9-11 version request

    I just created 11.1.1.3 application
    Import/export security
    Import/export of metadata
    Export/import data
    Export/import forms and grids
    I did the consolidation that i ussually made on version 9 (right-click - consolidate all)
    but the data has not been consolidated, and I don't know why?

    Did I miss something? or do I have to do something more?

    any suggestions would be appreciated

    Concerning
    Sasha
  • Trying to update a table in a second table when the data are different

    Hello;
    I have a the same table in two databases. The database are connected with a DB link. I'm trying to update one table based on the data in the second table when the EMP_ID is but the name does not match.

    The table will look like:
    Table name: EMP
    EMP_ID
    LAST_NAME
    FIRST NAME
    MIDDLE_INITIAL

    My SQL is:
     
    update EMP TARGET 
        set (TARGET.LAST_NAME, TARGET.FIRST_NAME,TARGET.MIDDLE_INITIAL) = ( 
            select SOURCE.LAST_NAME, SOURCE.FIRST_NAME, SOURCE.MIDDLE_INITIAL 
            from EMP@OTHER_DB SOURCE where 
            TARGET.PHYSICIAN_ID = SOURCE.PHYSICIAN_ID 
            and TARGET.LAST_NAME <> SOURCE.LAST_NAME); 
    This refers to a number of update of all lines not the bit I want.

    Any help would be great!

    Hello

    Sky13 wrote:
    Hello;
    I have a the same table in two databases. The database are connected with a DB link. I'm trying to update one table based on the data in the second table when the EMP_ID match

    Do you doctor_id?

    but the name does not match.

    The table will look like:
    Table name: EMP
    EMP_ID
    LAST_NAME
    FIRST NAME
    MIDDLE_INITIAL

    My SQL is:

    
    update EMP TARGET
    set (TARGET.LAST_NAME, TARGET.FIRST_NAME,TARGET.MIDDLE_INITIAL) = (
    select SOURCE.LAST_NAME, SOURCE.FIRST_NAME, SOURCE.MIDDLE_INITIAL
    from EMP@OTHER_DB SOURCE where
    TARGET.PHYSICIAN_ID = SOURCE.PHYSICIAN_ID
    and TARGET.LAST_NAME <> SOURCE.LAST_NAME); 
    

    This refers to a number of update of all lines not the bit I want.

    Any help would be great!

    There is no WHERE clause in the UPDATE statement, so that each row in the target table will be changed.
    If you only want to change the lines that have a match in the source table, then add a WHERE clause (perhaps "WHERE EXISTS (...)) with a subquery miuch very similar to the one you already have), or use the MERGER instead of UPDATE.

    If you want to know, post CREATE TABLE and INSERT statements to recreate the tables they existed before the UPDATE and also post the contents of the table changed after the UPDATE.
    Always tell what version of Oracle you are using.

    Maybe you want something like this:
    {code}
    MERGE INTO the emp target
    WITH THE HELP OF)
    SELECT o.emp_id
    o.last_name
    o.last_name
    o.middle_initial
    OF emp@other_db o
    JOIN emp t ON o.emp_id = t.emp_id
    AND o.last_name! = t.last_name
    ) source
    WE (target.emp_id = source.emp_id
    WHEN MATCHED THEN UPDATE
    SET target.last_name = source.last_name
    target.first_name = source.first_name,
    target.middle_initial = source.middle_initial,
    ;
    {code}
    assuming that emp is unique, at least in other_db.

    It will work in Oracle 10 (and more). In Oracle 9, MERGER still requires a WHEN MATCHED clause, so add one if you must. No matter what he does; the subquery USE will only return matches.

    Published by: Frank Kulash, October 10, 2011 16:45

  • Preferance pane window keeps popping open when the data entry or search in all fields. I'm also using 1Password and happens when you try to enter a password

    I'm running on Mac OS X 10.7.4, Firefox 14.0.1. This problem did not exist until this last update of Firefox. Basically, a preferences panel opens each time data is entered in a field. It doesn't seem to be the same preferences panel you see when you open preferences through normal access Firefox, IE. Firefox > Preferences. All the choices listed in this special preference pane are specific to Firefox. I have a screenshot that I could include if wanted. When you use the pane appears when you enter a search in the search bar near the address bar of 1Password the task pane opens, when entering data in any field because I am now filling in this report in detail pane also appears. It's pretty boring. Any advice? I will try systematically to leave any add-ons and see if that makes a difference. I have ave tried to do a reinstall without result.

    Isn't it always the case if you disable the other extension except 1Password?

    Start Firefox in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on the Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

Maybe you are looking for

  • Bluetooth error - Tecra M2 - ACPI device driver

    I have a Tecra M2 with Bluetooth, which never worked. When you try to activate it returns the error "could not open bluetooth ACPI (tosrfec.sys) device driver. By clicking new connection "device is not ready" is the error message. Does anyone have id

  • creating recovery media after upgrade to 8.1 window

    Hello friends. I have a lot of confusion. I bought a laptop on December 2012 with window 8 preinstalled and created the recovery media about 6 or 7 months later. And now, I upgraded my system to window the window store 8.1. And now again I would crea

  • Curve adjustment not linear need help

    I need help, try to fit a set of data that require the use of a non-linear curve.  I have attached a txt file that contains the data that must be mounted.  The first line contains the values of the x axis, while the second line contains the values of

  • project link error

    Hello AND I have a problem with CVI. I have a program that works since of weeks now no more and he gorge yourself me this error link projekt undefined symbol '_Ini_PutInt@16' referenced in "testbench.c". undefined symbol '_Ini_PutDouble@20' reference

  • BB::Multimedia:MediaPlayer

    When will they be released? Links for docs are present: https://bdsc.webapps.blackberry.com/cascades/reference/bb__multimedia__mediaplayer.html , but no page exists