Don't print empty fields...?

I need a little help... I am creating a User Request Form and i would
like the form to print only with the fields/boxes that are checked or
filled. I am not too experienced with scripts so i was looking for some
advice and or where i could find out how to accomplish this. Many
thanks!

You will have to get a list of all objects on the form, test then one by one to make sure you have a field, see if the field is empty and if so then set it to be Visible (screen only).
This script is not trivial for a non-programmer. If you want to try it here is the basis for creating a script object that will allow you to get all fields and set the relevant property to -print so that it will be excluded from the print. This is a function meant to go into a scripting object. To call the scripting object use:
scriptobjectname.NoPrintEmptyFields(form1);
Function: NoPrintEmptyFields
Description: This function will set all empty fieldsso that they will not print.
IN: The parent subform. It could also be an element that contains subform like form1
OUT : nothing
function NoPrintEmptyFields(myParentObject){
var allChildElements;
var intNumElements;
var currentElement;
var j;
//Get all the child nodes of the parent element
allChildElements = myParentObject.nodes;
//Total number of element in the object
intNumElements = allChildElements.length;
//Loop through all the child elements
for(j=0; j< intNumElements;j++){
currentElement = allChildElements.item(j);
//If the element is another subform we'll recusively call the function again
if(allChildElements.item(j).className == "subform"){
LockAllFields(currentElement);
//If the objects are fields and they are empty then we will set the relevant property to -print
else if((currentElement.className == "field") && (currentElement.rawValue == null)){
currentElement.relevant = "-print";
//Check for exclusion groups - Radio Buttons
else if(currentElement.className == "exclGroup"){
for(k=0; k< currentElement.nodes.length;k++){
if(currentElement.nodes.item(k).className == "field"){
//set the relevant property for the radio buttons individually
currentElement.relevant = "-print";
}//end function

Similar Messages

  • Office 2010 Don't print blank lines when data fields are empty

    How do you do this in office 2010?  Where do we go now?
    This used to be under the Tools menu in previous versions:
    On the Tools menu, click Mail Merge.
    In the Mail Merge Helper dialog box, click Merge.
    NOTE: You must select the main document and data source for the merge before doing step 2.
    In the Merge dialog box, under When Merging Records, click either:
    Don't print blank lines when data fields are empty.
    -or-
    Print blank lines when data fields are empty.
    Click Close in the Merge dialog box, and then click
    Close in the Mail Merge Helper.
    NOTE: If you made no changes in the Merge dialog box, the
    Close button is not available. Click Cancel instead.
    Back to the top

    Hi,
    In Word 2007 or Word 2010, you can add
    Mail Merge Helper to the Quick Access bar, and perform the steps then.
    To add the
    Mail Merge Helper command in the Quick Access Toolbar in Word 2007, follow these steps:
    a.                 
    In Word 2007, click the
    Microsoft Office Button, and then click Word Options >
    Customize.
    In Word 2010, click File > Options > Customize Ribbon.
    b.                 
    Click
    All Commands in the Choose commands from, and then click
    Mail Merger Helper in the Choose commands from list.
    c.                  
    Click
    Add, and then OK.
    Best Regards,
    Sally Tang

  • Empty field Validation before Print, What's Wrong with THIS code??

    I have been trying unsuccessfully to get this code to work.. I am stumped!  I created a print button.  Then added this script under "Form Calc" in the Click event of the button.  But when clicked nothing happens.  I have a radio button group that has different options but I only want to make the field NameofReferralSource required if the user checks Broker.  The print button is on page 1.  The field and radio button group are on page 7.  I just can't figure out how to get this to work.  I don't necessarily need to make the fields required since then I would have to add script remove the red border and add a message telling user where the field is otherwise they will have to search through 6 pages to find it. (maybe a better solution?)  I just want a simple code that fires when the user hits the Print, Save, or Submit button to check if Broker name is empty and if it is, prompt them to fill in.  Help!
    if ((topmostSubform.Page7.NameofReferralSource.rawValue == null)  & (topmostSubform.Page7.Howdidyouhear.0.rawValue == "Broker")) then
    xfa.host.messageBox("You must enter the the Name of the Broker under Referral Name on Page 7 to be able to print this form")
    else
    Print_Form.execEvent("click")
    endif
    Brenda

    Ok, well my reference to the fields were incorrect.  Here is the new code:
    if (Page7.NameofReferralSource.rawValue == null){
    xfa.host.messageBox("You must enter the the Name of your Referral on the bottom of Page 7 to be able to print this form");
    }else{
    Print_Form.execEvent("click");
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
    The first part that checks for an empty field and displays a message works however the print dialog still pops up after the user clicks ok to the error message.  Any ideas?

  • Don't display empty database fields

    Hi
    I'm putting together a Stockist database-driven site using PHP & MySQL however some of the fields in the database are blank for some records, i.e. not all will have two lines in the address and not all will have a post code depending on the country etc.  I want to display the details as an address block but wonder if there is a way to not display empty fields?  Currently if a line is blank then it displays as a blank line but I want to suppress these blank lines to avoid gaps in the address block.
    Is this possible?
    Paul

    Use if/else for your dynamic elements with a condition if field = null show nothing else show the field on the page. Your code will look something like this:
    <?php
    // show if no City
    if (@$row_profile['city'] == "") {
    ?><?php
    // else show City
    } else { ?><?php echo $row_profile['city']; ?><br /><?php }
    // end if no City
    ?>
    I use something like this on the profile page. The sample code is for the users listed city from the profile recordset. If a city is saved in the database table it will show the city with line break on the page. If there's no city in the database it will not show anything. In the sample code change 'profile' and 'city' to your recordset and your table field, respectively.

  • Database - reports - suppress empty fields

    I have a fairly large database which frequently has a number of empty fields in the records. Is there a way I can suppress the empty fields when I print a report? It might reduce a nearly 60 page report to 30. A significant saving.
    Thanks for any help or ideas.

    Here is an enhanced version.
    --[SCRIPT report visible records]
    Enregistrer en tant que Script: report visible records.scpt
    déplacer le fichier créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:AppleWorks 6:
    Il vous faudra peut-être créer le dossier AppleWorks 6 et peut-être même le dossier Applications.
    Ouvrir votre base de données,
    rendre visible les fiches à imprimer
    menu Scripts > AppleWorks 6 > report visible records
    Le script crée un document traitement de texte à partir du contenu de ces fiches
    À droite des noms de champs, le script insère un caractère 'deux points' suivi d'un TAB ce qui permet d'aligner aisément le début des données affichées.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as Script: report visible records.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:AppleWorks 6:
    Maybe you would have to create the folder AppleWorks 6 and even the folder Applications by yourself.
    Open your database
    Make visibles the records to print.
    menu Scripts > AppleWorks 6 > report visible records
    The script creates a new WP document with the contents of these records.
    After the fields name, it inserts a colon and a TAB so it would be easy to align the beginning of data values
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2009/09/20
    --=====
    property myWP : "my report.cwk"
    property doWhat : 1
    1 = skip empty fields
    2 = display fieldName for empty fields
    3 = display fieldName and "unavailable" for empty fields
    property liste : {}
    property nomsChamps : {}
    property nbf : missing value
    --=====
    on run
    my nettoie()
    tell application "AppleWorks 6"
    activate
    if document kind of document 1 is not database document then error "Document 1 is not a database !"
    set myDB to name of document 1
    tell document myDB
    set my nomsChamps to name of fields
    set my liste to index of every record whose visible is true
    end tell -- document 1
    end tell -- AppleWorks
    if my liste is {} then error number -128
    set nbf to count of my nomsChamps
    tell application "AppleWorks 6"
    make new document with properties {document kind:text document, name:myWP}
    set nbr to count of my liste
    repeat with rec from 1 to nbr
    set the clipboard to my readRecord(myDB, rec)
    tell document myWP
    paste
    if rec < nbr then select menu item 12 of menu 4 (* Inserts Page break *)
    end tell -- document
    end repeat
    end tell -- AppleWorks
    my nettoie()
    end run
    --=====
    on nettoie()
    set my liste to {}
    set my nomsChamps to {}
    set nbf to missing value
    end nettoie
    --=====
    on readRecord(d, r)
    tell application "AppleWorks 6" to tell document d
    set l_fiche to {}
    repeat with f from 1 to nbf
    set valF to value of field f of record r
    if doWhat = 1 then
    if valF is not unavailable then copy (item f of my nomsChamps) & " :" & tab & valF & return to end of l_fiche
    else if doWhat = 2 then
    if valF is unavailable then set valF to ""
    copy (item f of my nomsChamps) & " :" & tab & valF & return to end of l_fiche
    else
    copy (item f of my nomsChamps) & " :" & tab & valF & return to end of l_fiche
    end if
    end repeat
    end tell
    return my recolle(l_fiche, return)
    end readRecord
    --=====
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) lundi 21 septembre 2009 15:32:47

  • Contract - problem with attachements (empty field in LOIO_OBJID)

    Hi Guys,
    We are using extended classic scenario of SRM 4.0 (SRM Server 500) and our latest support package is SAPKIBKS12. We have the following problem with contracts.
    Sometimes when an attachment is added to a contract the system does not fill the following fields in tabel BBP_PDATT.
    LOIO_CLASS: Normally filled with BBP_L_DOC
    LOIO_OBJID: Normaly filled with a GUID size datastring
    Whenever this happens and later on the contract is changed and released the system will raise an abort. We tried the following notes but no good result.
    891293,919467,932602,964065. Some other notes that might be possible are 1042826/1085700/1083063 but we also don't have good experience with these ones.
    Can anyone give us advice about two things.
    1) Is there a way to fill the empty fields in BBP_PDATT so that existing contract will work properly again?
    2) Does anyone know why this problem occurs and how to fix it for new contracts?
    Hope to hear from you,
    Arie

    Thankyou for the reply. I have made following changes but still not working. I am creating the inquiry and customer material is not getting populated. Please guide in resolving the issue.
    DATA : W_ENQUIRY_ITEM_INX LIKE BAPISDITMX OCCURS 0 WITH HEADER LINE.
    W_ENQUIRY_ITEM_INX-ITM_NUMBER  = THEAD-ITEMNO.
          W_ENQUIRY_ITEM_INX-UPDATEFLAG  = 'X'.
          W_ENQUIRY_ITEM_INX-CUST_MAT22 = 'X'.
    APPEND W_ENQUIRY_ITEM_INX.
    CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'
       EXPORTING
       SALESDOCUMENTIN               =
         INQUIRY_HEADER_IN             =  W_ENQUIRY_THEAD
      IMPORTING
        SALESDOCUMENT                 = W_NUMBER
       TABLES
        RETURN                        = W_RETURN
        INQUIRY_ITEMS_IN              =  W_ENQUIRY_ITEM
        INQUIRY_ITEMS_INX             =  W_ENQUIRY_ITEM_INX
         INQUIRY_PARTNERS              = T_INQUIRY_PARTNERS

  • Trying to print form fields only

    I have made a fillable form with LiveCycle Designer, it is a 2 page form that my customer will receive by email, fill out and then feeds into a regular ink jet printer to print off fields onto an already pre-printed page they have in their office (they are basically filling out their name, address, etc contact information to print onto a brochure that is pre-printed) My client will use Acrobat Reader to fill in the form. Does anyone know a way to do this? I have read about making the background non-printable, or non-visible, but my background is an already created PDF that I have imported (with the forms built on top of it in LiveCycle). Doesn't seem to work unless I import it as an EPS.
    I also have Adobe Acrobat 8 Professional. Is there a different way I should be doing this instead of LiveCycle? I have tried to import the PDF background as an EPS, but the quality makes it really bad and I want the professional quality of the pdf that I already have built, as I have 10 of these to do and the PDFs are already done.
    I have been trying to work this out for 2 weeks and still not getting anywhere. Any help would be greatly appreciated.

    Hi,
    OK I am back at the desk.
    I have checked the help files for Acrobat 8 Pro and Acrobat 9 Pro and it appears that the ability to "import as a layer" was added in version 9. Sorry.
    You can check out the help file here: http://help.adobe.com/en_US/Acrobat/8.0/Professional/index.html and go to Editing PDFs > Layers.
    If the original PDF was generated from InDesign you may still be able to get the layers into the PDF: Help file
    "To retain layers when you convert InDesign CS or later documents to PDF, make sure that Compatibility is set to Acrobat 6 (PDF 1.5) and that Create Acrobat Layers is selected in the Export PDF dialog box"
    The last thing I can suggest (and I believe you can do this in Acrobat 8) is to start off with the blank PDF and from the Forms menu add a button to the page.
    Resize the button to the full page and then right click on the button and get its properties.
    The screen shots should look similar to v8. I am just going to highlight some of the setting you should set for the background button.
    In particular make sure that the button behaviour is set to NONE in the Options tab.
    Hope that helps,
    Niall

  • How to handle source empty field in FDM maps

    Dear all,
    In our projects, data was extracted from EBS with ERPi adapters to HFM through FDM. In this case, some source fields are empty after the data extraction from EBS. The problem is, how can I deal with the empty field in the maps. For now, the workaround is using wildcard (like *->[None]), sth like that. But there is a risk in it, it may happen to ignore some records with error. Do your guys know any special characters stand for the Null in the mapping?
    Thanks!

    We have had a workaround solution since moving to V11. This was not a problem in System 9.
    The issue with blanks not defaulting to [None] is that some values escape the test. Such as forcing default values using "Like (* = [None])". If a new code is in your data that is not in your map, the Validation process foiled since [None] is valid and all blanks are now [None]. Only then do you either have an intersection violation that shows up during Export or you get bad data in HFM.
    I don't like this new "feature" in S11 FDM. We will be submitting a request to have the default functionality added back. Perhaps as an option?
    Mike

  • Any way to not print certain fields?

    Using acrobat Xi pro I'm creating a form with multiple fill in text boxes and drop down boxes. I'm trying to figure out a way to have the form not print the unused / unfilled boxes.  I've tinkered with the show/hide and it's not working and my knowledge of javascript is VERY limited, could anyone give me some help or point me in the right direction here? 

    I poorly explained what I was trying to do but you solved most of the problem, which was the drop downs.  Putting a space as the default option cleared it for me, which fixed that problem
    One of the pages has a 6 groups of  text fields for names / addresses / etc.  Each field has a label above it.  If the address field is blank, is there a way to hide the text I've typed above the empty field.  That way when I print it only prints the labels / fields that are filled in and the rest shows up blank, if that makes sense

  • Print Live Fields Only in Reader

    Does anyone know how you can print "live fields only" in Reader?
    I want my clients to open up a form (either created in LiveCycle or Acrobat 8 Pro), be able to fill out the fields and then print ONLY the fields they filled in, into a pre-printed brochure through their ink jet printers at home. (Basically they are filling our their own contact information to be printed on a brochure)
    I can seem to find an option to print like this in Reader.

    Unfortunately I don't get this option in Reader, only in Acrobat. My clients will be using Reader to fill out form and print. I guess I am going to have to create something different in Acrobat, so that the clients won't have to worry about not having that option in Reader.

  • Empty field collapses.

    When the field is empty, it collapses. The field on the right is shifted left to take its place. I don't have any anchors on any fields. From reading about anchors, I got an impression that they are created to enable collapsing, while not collapsing is the default. Am I wrong? How can I prevent collapsing?

    Hello,
    Is your empty field inside a frame? If so, make the frame horizontal elasticity as
    fixed or expand.
    -Marilyn

  • Visible (don't print)

    With designer 7.1 I can set the visibility option for the print button to "visible (don't print)" without difficulty.
    However when I create any object and wish to invoke the "visible (don't print)" option that field is grayed out.
    My work-around is to use another designer program for this purpose but I shouldn't have to do that.
    What step am I missing?
    Howard

    Currently the "visible (don't print)" option only applies to buttons. For any other type of field you'll need to set it to invisible in the prePrint event and back to visible in the postPrint event.
    Chris
    Adobe Enterprise Developer Support

  • InDesign-Data Merge, Consecutive Empty Fields

    Hi there,
    I've been doing data merges in InDesign for quite some time now and I've always had this problem. I don't know of any other way, besides to go in and manually delete every line, to get rid of this issue.
    Here's my data block:
    <<First Name>> <<Last Name>>
    <<Spouse First>> <<Spouse Last>>
    <<Address 1>>
    <<Address 2>>
    <<City>>, <<St>> <<Zip>>
    Normally, I can just combine address 1 and address 2 into one line separated by a space and it's no big deal. I've tried using the merge option to delete the empty line, but it has never worked properly.
    My main concern is the second line. Not all records have a spouse associated with them and when merged, I have to go in an manually delete the entire line. Is there a way to fix this?

    I've tried using the merge option to delete the empty line, but it has never worked properly.
    That's odd; it's pretty much exactly what you are asking after. Can you tell us anything outside of "it has never worked properly"?
    Is there anything non-standard about your merge? (I.e. unusual text encoding, images, master pages, n-up merges, et cetera.) Can you take screenshots of your merge dialogs? Or give us a step-by-step rundown of what you are doing? Are you previewing before merge?
    I am an infrequent but long-time user of Data Merge, and I've always been able to use the "Remove blank lines for empty fields" checkbox without issue.

  • How we can Print a field Value in last line of the layout

    Hello:
    I am doing Check printing report ... Accroding to that I am facing a problem to print a Field value in last line of the layout....Anyone Can help to this please.....

    Hello,
    Take a look to the example provided in the note :
    Note.253881.1 How to Create a Report With a Frame Only on the Last Page at a Fixed Position
    Regards

  • Exporting a PDF so that non-printing objects show but don't print?

    I've just spent a couple hours trying to find an answer to this in the forums, but can't. (The most frustrating was one thread where the original poster said, "I found the answer here," and gave a link that went right back to the main page of the forum. Argh.)
    Okay, anyway ... what I need to do?
    I've got a document with graphics that I want to show up on the pdf when I export it, but that--if a reader prints it--don't print.
    The document looks like a 3-ring binder with "tabs" for each section--just like the real thing. But the rings and tabs go right up to the edge and look terrible when printed, and whose printer can print right at the edge of the paper, anyway? But the tabs work as navigational links while looking a the pdf, and the rings just make it look cool, so I WANT them in the pdf.
    I've tried:
    Turning the entire layer into a non-printing layer (one that "shows" but does not "print"). But when I export it to a pdf, it doesn't show up on the pdf to look at OR to print. So that doesn't work.
    Using the Attribute option to turn each object into a non-printing object, but so far as I can tell, that doesn't do a thing, because they still print from the pdf.
    Exporting with the "create pdf layers" turned on and off. Exporting with the "include non-printing items" turned on and off.
    Basically, I've pretty much tried everything. I gather, from browsing the forums, that this is POSSIBLE, but can't for the life of me figure out what to do to make it happen. (Short of hiding the tabs' layer and creating an entirely separate PDF and calling it "Print version" which is not exactly what I want to do!)
    Is there maybe some magical combination of ons and offs I need to select to make this whole thing work?
    (And, seriously, am I the only person who thinks the supporting documentation is just dreadful? I can't find anything in any of the Help screens that even mentions this, much less explains how to do it.)
    Any help is appreciated!!
    --Deb

    Partial progress...
    The button option (and, I'm using CS3, by the way--I should have said that originally) does work in terms of showing on the pdf but not printing.
    The problem is that it messes up the way the document looks.
    I said it's designed to look like a 3-ring binder with tab-dividers between each section, and each tab has a hyperlink to take you to that section.
    Now, when you've got a paper binder in front of you, the tabs stay in the same sequence, and often overlap a bit (which mine do). The problem I'm having, having turned all of them into buttons, is that when you click on any of them, it "jumps" to the front of the row, so that they don't "flow" in the correct sequence.
    Am I explaining this well? You know, the top-most tab is at the top of the pile, the next one is always below it and above the third one, and so on ... you never see the second tab on TOP of the first one. I'm trying to get the document to act as close to a hard-copy binder as I can, and it did ... except the buttons keep jostling each other for attention...
    I'm going to go play around with this some more now, but ... any suggestions? (Other than restructuring my tabs so that they don't overlap at all?)

Maybe you are looking for

  • Global Performance Cache - Seeking Opinions

    Hi Guys - I am still debating whether to buy CS6. None of the new features interest me nearly as much as the GPC; my decision to upgrade depends a lot on what you guys say about it. I've used AfterFX long enough to know (since AE7 Pro) that the speed

  • Books on Adobe Air development using HTML/JavaScript

    Hi, I always been of the opinion that one of the signs of a healthy, viable technology is the availability of books and manuals (not just articles or short tutorials online) on how to use said technology. I'm interested in Adobe AIR development for D

  • I need to re-install Adobe suite CS3

    I have an old computer and want to install my CS3 version. it keeps asking me to install disk of CS4, wich i don want , since my computer is too slow. someone told me that I have to erase all CS4 links in my comp, but I do not know where they are. Pl

  • Color Board Preset Won't Save

    I'm feeling really dumb here. Someone stop me if this sounds wrong... This is straight from the help... Save a color correction preset In the Timeline, select a clip that has the color correction look you want to save, and open the Color Board. Choos

  • To get full screen map view

    Hi All, I am using Oracle ADF along with mapviewer 11g. My Jdeveloper version is 11.1.1.4 My issue is I am not able to attain full screen mapview in Internet Explorer 7. The same code works fine in Mozilla. The source code is as below. It is a pity t