LiveCycle Newbie: Validate Before Printing Form

I have a form created in Adobe Acrobat Pro that I have brought into LiveCycle to add print and emails buttons to. However, I need a specific functionality added to the standard "Print" button. It is a legal form that has required fields and the client needs to fill in all the required fields on the form BEFORE printing and signing it. We have had problems in the past with clients not filling in all the required fields before sending it back to them. So, I need to somehow make the print button check to make sure all the required fields are filled in and send a warning message and/or prevent printing if all the required fields are not filled in. Is there a way to do this?
I am using LiveCycle Designer ES 8.2 and I am VERY new to this program so the simpler the solution the better.
Thanks in advance for the help!

Hi
I would add another fake print button over the top of the existing one but just add a standard button not a print button.
then to the click scripting event in the script editor add something like the below
if ((TextField1.rawValue == null) or (TextField2.rawValue == null) & (CheckBox1.rawValue == "1")) then
xfa.host.messageBox("You must enter the required data to be able to print this form")
else
PrintButton1.execEvent("click")
endif
as you are relatively new to this. Incase the above it giberish to you I will try to explain what the above is doing.
the above is an if statement using formcalc (which is the default on button objects)
as this code is inserted in to the click event  (you can see what event you are looking from the dropdown at the top left of the script editor window.... make sure click is selected, and formcalc is set in the drop down to the right of the script editor window.
each bracketed command e.g. (TextField1.rawValue == null) is address a single field in your form. You will need to make sure you adjust these names and the path to these names so it may end up looking like (Form1.subform.TextField1.rawValue == null).
A quick tip to ensure you have the right path is with the cursor in the script window move your mouse over the field you wish to address, hold Ctrl button and click the field. This will load the field path in to the script editor and all you have to add is the .rawValue portion of the command.
You require '==' because means 'is equals to' in formcalc
the null term means 'if the field is empty'
if you have checkboxes that require to be ticked you must address them and look for a value of 1 (as in the example) as as default when a checkbox is selected it has a value of 1.
you can use or commands or & commands between expressions.
please note all the comments together require brackets round them hence the double brackets at the start and end of the expression.
once you have added all the required expressions to the top line
the second line is saying if the statement returns a true value  e.g. in our example a true value would be returned if TextField1 or TextField2 empty AND the checkBox1 is not ticked
then this will pop up a message box saying you have not entered the required fields to print this form
then the else statement says to click the print button for the user.... which will print the form as the print button does now.
I know it may seem complicated but it honestly is not that difficult.
Feel free to come back to me if you need any further help.
Regards
Graham

Similar Messages

  • Require name and date before printing form

    I have a 13 page PDF that a customer or our staff prints from our website. Often the customer or staff does not name and date each page of the form. Not having a name and date on each page of the form causes problems when they customer returns the form to the office, and the form pack gets divided for scanning into different areas of the customer file. 1) Is there an Adobe product that changes a PDF to require the downloader of the form to place a first and last name in the name field before printing. 2) Also, I would need a date stamp placed on the form when it prints. Is there I product that could help me program this PDF to do these 2 things?  This post is the first time I can recall posting in this community. Any other suggestions are welcome. Thank you.

    >> 1) Is there an Adobe product that changes a PDF to require the downloader of the form to place a first and last name in the name field before printing.
    Many fields have a "Required" property. This is used when a form is submitted to a scripted web page for processing to throw an error message if any required fields are not completed.
    One can use this property within a an action for a form to check if required fields are competed.
    >> 2) Also, I would need a date stamp placed on the form when it prints.
    I would add a form field that is filled in with the print date and time by some JavaScript in the Will Print action.

  • No printing :I can't print anymore, printing the same file with another programs is ok, printing form LR: Preparing  and Printing indicatorbar in the left hand upper corner are running, but no output at all rom my printer. I have been printing before. I u

    No printing :I can't print anymore, printing the same file with another program is ok, printing form LR (in the same system and printer of course :-) ): Preparing  and Printing indicatorbar in the left hand upper corner are running and completing, but no output at all to my printer. I have been printing before. Next I upgraded to LR5.7.1 but the problem stays. Perhaps some adjustment is changed by me unintentionally, but I have no idea. Does anybody know what to check? Printing to file is also strange,the canvas only seems to accept A4, and crops any image relative to that size, so a 10x15 cm print on 10 x 15 cm paper is cropped to 10x15/2. Anybody any idea? (system win 8.1 64, printer HP B8550)

    I accidentally solved my mystery.  For some reason it was set to "print to file".  I changed it to "printer" and now I am able to print.

  • Shade background before printing a form

    Hi,
    I have a single page form which need to be printed twice, the first copy with a white background ( standard ) the second copy needs to have the page shaded with a yellow Background.
    Reason to save having to put a white paper and yellow paper into printer. Will then only need two sheets of white paper.
    I know the printing javascript just need the code for shading the background before printing.
    Thanks
    panos

    Don't forget that a bit of yellow paper is probably a lot cheaper than the ink. Don't know if the cost or the conveninece was your goal.

  • Is it possible for a user to edit the output of a form before printing?

    This might sound odd but the business have requested the ability to edit the text of a Smartform before printing. i.e. a standard form can be printed 'as is' for most employees but certain exceptions may require the wording to be slightly amended.
    I don't think this is possible but I want to know for sure.
    Any advice is much appreciated.
    Many thanks
    Matt

    Hi Matt,
       Sanjay was right.
    That is the best you can do as of now.
    Have a screen when the user has a chance of modifying the texts that are currently being displayed on the print. Let him save the texts and then trigger the smrtform, which would pick the updated texts instead of the old ones.
    the function modules READ_TEXT, SAVE_TEXT may come in handy here.
    regards,
    Ravi

  • Get number of pages of adobe form before printing

    Dear Experts,
    I want to get number of pages adobe form will print before printing the form.
    Please suggest.

    Hello Sagar,
         Without executing the generated Function Module, it is not possible to get the page count of a form in driver program because the generated FM itself is responsible to execute the whole layout and determine the number of pages in the PDF output. The below screenshot shows the number of pages in the structure /1BCDWB/FORMOUTPUT of generated FM after the generated FM is executed successfully.
    I really don't know why you need the number of pages before calling the generated FM. But if you still need it, then you might need to call the whole FM cycle twice( FP_JOB_OPEN , Generated FM, and FP_JOB_CLOSE ).
    1) First time while calling the FM FP_JOB_OPEN, you need to modify the contents of SFPOUTPUTPARAMS structure. Send the blank values in fields GETPDF, REQNEW and REQIMM, and send the "X" in fields NOPREVIEW, NOPRINT and NOARCHIVE and 000 in field COPIES.
    The reason for doing this is, we do not want actual PDF output. We only want to determine the number of pages.
    2) Now execute the generated FM . You will get the number of pages in the structure /1BCDWB/FORMOUTPUT-PAGES as shown in screenshot above.
    3) Now call the FM FP_JOB_CLOSE as usual.
    4) Again call the FM FP_JOB_OPEN. This time you again need to modify the contents of SFPOUTPUTPARAMS structure reversely. Send the "X" in fields GETPDF, REQNEW and REQIMM, and send the blank values in fields NOPREVIEW, NOPRINT and NOARCHIVE and 001 in field COPIES.
    This time we need the actual PDF output.
    5) Now do the required processing with previously fetched number of pages before calling the generated FM.
    6) Now call the FM FP_JOB_CLOSE as usual.

  • Newbie...large form, repeated fields, separate output

    Apologies in advance for being the newbie.  I'm great with programming MS, not done any in Adobe, and I suspect the answer to this is going to be that it'll require scripting.
    I have a need to process a large batch of mixed typed of paper:
    forms filled in by hand, with address/other info
    checks (images of checks)
    forms that have been pre-printed with information
    These will all be one large continuous set of pages (will start as a video file of these getting imaged, then someone will create snapshots of the points in the video where each page is laid under a camera, then the snapshots will be combined into one pdf, which represents all documents that got processed).
    I then need someone to have the ability to do the following, as they go through the pages in Acrobat:
    - depending on the type of image they see (hand form, check images, printed form), click a shortcut, which will create a predetermined set of form fields, in a predetermined place on the screen (effectively layered onto the image).  These form fields will be set up to correlate to the type of image (a hand form will have X number of fields, which allow for address, checkboxes, etc....a check image will have Y number of fields which are address and amount...and so forth)
    - they will then do one of the following:
              have a dropdown, which is fed by some DB (don't know if it is supposed to reside in Adobe somewhere, or can be looking into an Excel/Access, or how this might be done).  They will select from an ID number that the image they're processing needs to tie to (again, ID numbers are already determined in a system elsewhere...this exercise is tying form/check information to that ID number)
              fill in the appropriate fields if it is check or handwritten form
              have the fields for a pre-printed form (which means that the person's information is already in the system, and they printed the form up before submitting it in person) populate the fields in Adobe...so there are X number of fields...in our system we have the information to fill them...based on the lookup that happens in the dropdown, the values that would populate name/address/etc need to also come back and populate the set of fields in that page
              use then just verifies what's on the screen matches the form, or edits as necessary
    all fields then need to output into a structured Excel file (this part I've done with Adobe before, so I am aware of how to do this).
    How much of the above is reasonably simple, for someone who knows scripting?  Anything sound like it's simply not possible?  I'm trying to gauge whether this idea has legs.  Thanks.

    Thanks Jimmy, I read through a few other posts on the forum about vaguely related results and found the problem.
    It seems that when i had copied and pasted a bound subform containing data and then changed the binding on the outer subform, the actual binding on the controls hadn't changed (despite seeming to have done so in designer). When i went into the XML source and manually changed these, the problem seems to have cleared up.
    But thanks anyway :)

  • Require Fields Before Printing

    I've been looking through the documentation of Adobe Live Cycle Designer and cannot find my answer. I have two fields, which I would like to be required. Upon a user pressing the print button, if these fields are empty, require it before the form will print.
    I have looked everywhere and can't find my answer. I'm assuming the form will still print if the fields are blank if the user were to use the File>Print option through their specified browser?
    Any help would be appreciated.

    i found a super cool secret code to validate the whole form in one line of code!
    F.execValidate();
    so my print button is a normal button (not a print button)
    with this code for onclick:
    if(F.execValidate())
    xfa.host.print(1, "0", (xfa.host.numPages - 1).toString(), 0, 1, 0, 0, 0);
    easy as that!
    IMPORTANT:
    - unfortunatly it does not check if required fields are empty
    - it only checks the "validation pattern" under Object > Value
    - the "Error" box beside "validation pattern message" MUST be checked (if it is not checked, your validation errors will still popup, but the function will return true when it should be false - and therefore the print box will popup)

  • Internal table in adobe print forms

    hi there,
    in my WDA-application i use adobe print forms for output.
    i use a table for displaying an internal abap-table.
    in the formular-hierarchy it looks like this:
    table2
    --> line1
      --> cell1
      --> cell2
      --> cell3
    my problem is that i am a complete newbie in scripting in print forms.
    here is what i want to do:
    if cell1 = 'X' then the text in cell2 has to be bold or underlined.
    Can someone provide me with a code-example either in javascript or formclac???
    thx
    David

    thx for answering.
    first i tried the following code:
    data.T1.Tabelle2::ready:form - (JavaScript, Client) -
    this.Zeile1.Zelle2.font.weight = "bold";
    this.Zeile1.Zelle2.font.underline = "1";
    the result is, that cell2 is bold and underlined but only the first row of the table. i want all cell2 in all rows bold and underlined.
    then i tried this:
    data.T1.Tabelle2::ready:form - (JavaScript, Client) -
    if(this.Zeile1.Zelle1.rawValue == "01"
    this.Zeile1.Zelle2.font.weight = "bold";
    this.Zeile1.Zelle2.font.underline = "1";
    nothing happens and i dont understand why. The visible value in Zelle1 is "01"!

  • Question regarding Graphics - Print Forms

    Hi,
    This is a print forms question. We are on ECC 5.0, basis release 640
    Currently, for all our SAPscripts, we have our graphics as TIF files stored as text modules.
    For our Smartforms, we loaded BMP files to the BDS using transaction SE78.
    Adobe brings up the exciting possibility of using smaller sized JPG/JPEG files.
    The only place I can think of storing the JPEG files in the SAP system is the MIME Repository. Looks like SE78 does not support JPEG files.
    Here's my requirement and question.
    In the mime repository, I created folder 'LOGOS' in SAP/PUBLIC. So, the path would be /SAP/PUBLIC/LOGOS
    The names of the files in the mime repository are 'LOGO_A' and 'LOGO_B'.
    We need to print the company logo based on company code.
    If company code is 'A' then 'LOGO_A' else, 'LOGO_B'.
    We are reluctant to read the graphic in the ABAP program and pass the whole content through the Interface.
    I cannot embed the graphic in the form since the LOGO will change based on company code.
    Since we can use an url for an image field in Adobe forms, how can I point the url to the mime repository?
    Any help on this is greatly appreciated.
    Thank you.
    Best regards,
    -Ramesh

    Thanks Markus.
    By what you said, I am inferring that you mean access to load the graphic files to the Mime Repository.
    My question is to read the Mime repository since users of bsp applications can still see the LOGOs in their bsp pages (I think. Never did BSP before).
    Here is what I am doing currently.
    Here's my interface:
    LOGO_DATA TYPE XSTRING.
    In my driver program, I am reading the Mime Repository graphic into an XSTRING and passing it through the interface to the LOGO_DATA field.
    I created a Graphic in the Context and set it to 'Graphic Content'.
    I am setting the 'Field' property to LOGO_DATA and MIME Type to 'image/jpeg'
    Now,
    Instead of reading and sending the whole binary content across through the function call, I am looking to see if the following would be possible:
    Interface:
    LOGO_URL TYPE STRING
    In the driver program, assign the URL of the Graphic to field LOGO_URL (Don't know how yet).
    In the context, create a Graphic and set it to 'Graphic Reference'
    In the URL property, set the Graphic URL property to LOGO_URL field and then clear out the delimiter field.
    If it is not possible with the Mime Repository, will it be possible with the Business Document Server (Transaction SE78).
    Thank you.
    Best regards,
    -Ramesh

  • RE: prob with line item text in PO print form

    Hi All,
    Problem with SAPscript
    I have A problem with PO pronting form.  In the PO craetion(me23n), IF we mention certain text in last line item the PO printing form is behaving uncertanly.
    If the text limit to a particular line is mentioned , then PO printing in only first  Page and otherpage is not printing where further data is supposed to print.
    If we exceed the limt , its again printing correctly in 2 pages with all the data. If we decrese the limit aslo printing fine.
    My problem  is , I could not understand exactly where the problem is coming. while debugging Befor the text apperas in form I have an inlcue like this form.
    INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH IX.
    IS the prob exist here?
    Please help me out?
    Edited by: shruthi puttoju on Jul 24, 2009 9:01 AM

    Hi,
         Header Long texts will be different from Line items long text, i think you are passing the long text for line items, so check how the long text is coming in debugger of the sapscript for each line item.
    Look at the Text Element ITEM_TEXT in the Main window of the sapscript. It has the INCLUDE which holds the text you are talking.
    INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &
    Regards
    Bala Krishna

  • I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    Acrobat XI is not distributed with Designer. Designer is now a separate product. You can create forms in Acrobat as an AcroForm or using Forms Central (an online forms program). You can print the form to a new PDF and then recreate the fields in Acrobat using the recognize form fields. You will likely have to fix the form fields, but that would be the process. Generally, once a form is taken to Designer, you can't bring it back without such steps.
    Designer is available with AA8 - AAX, but since is a separate product as I indicated.

  • How do I edit a "fill and print form" using Acrobat XI?

    We recently upgraded to Adobe Acrobat Pro, version 11. We have some staff who previously created "fill and print" forms with Adobe Acrobat 10. However, now when they try to use version 11 to edit the form, they receive the following message: This form cannot be edited in Acrobat. Please use Adobe LiveCycle Designer to edit this form.
    If I remember correctly, version 10 (or some package suite) use to install LiveCycle along with version 10. This doesn't seem to be the case with version 11. So... How do we obtain LiveCycle Designer? Is it still available to install on a desktop or is it only available in the cloud?  Or, preferably, is there a way to edit the form using Acrobat Pro version 11?
    I don't work with Adobe forms myself, so any information you can provide will be extremely helpful. Thanks.

    LCD forms can only be edited in LCD. However, Adobe stopped distributing LCD together with Acrobat. You need to purchase it separately now, but if you had a previous license you can get it at a large discount, I think. Try the LCD forums for more info about that.

  • How do I edit a "fill and print form" using Acrobat Pro XI?

    We recently upgraded to Adobe Acrobat Pro, version 11. We have some staff who previously created "fill and print" forms with Adobe Acrobat 10. However, now when they try to use version 11 to edit the form, they receive the following message: This form cannot be edited in Acrobat. Please use Adobe LiveCycle Designer to edit this form.
    If I remember correctly, version 10 (or some package suite) use to install LiveCycle along with version 10. This doesn't seem to be the case with version 11. So... How do we obtain LiveCycle Designer? Is it still available to install on a desktop or is it only available in the cloud?  Or, preferably, is there a way to edit the form using Acrobat Pro version 11?
    I don't work with Adobe forms, so any information you can provide will be extremely helpful. Thanks.

    LCD forms can only be edited in LCD. However, Adobe stopped distributing LCD together with Acrobat. You need to purchase it separately now, but if you had a previous license you can get it at a large discount, I think. Try the LCD forums for more info about that.

  • SaveAsRtf; Preview before print

    I'm a newbie to Reader 9 and have to "Windows Vista" questions:
    1. very can I find/install addin SaveAsRtf
    2. is there an addin, program; other that let you preview "pdf printout" before printing
    What i'm trying to do is to find a way to
    1. print an "web-document" to a driver (virtual driver)
    2. preview the printout not the pdf document
    3. save it as TXT,RTF or Excel and if needed make changes
    The reason is that the documents only can be printed to a printer.

    Hi
    data:
       w_ctrlop type ssfctrlop,
       w_compop type ssfcompop,
       w_return type ssfcrescl.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    Regards,
    Sravanthi

Maybe you are looking for

  • What is the Best Safari Version for OS 10.9.5 Maverick on a MacBookPro, 2.4Ghz, 8 GB Mem.?

    What is the best Safari Version for OS 19.9.5 Maverick on a MacBook Pro. 2.4 Ghz, with 8 gb memory?

  • How can I tell if my AirPort  is not working correctly?

    I've been experiencing up and down internet speeds, from as high as 40 Mbps, to as low as .3 Mbps!  And since Sunday, the connection will just cut off!  When I close & open it, it comes back, but it cut out about four times within one day! I've had t

  • Updating abc indicator

    how to the system updates the ABC indicator in the material master data.....on what basis......is there  any program we should run  .. Please explain

  • Song Files are missing?

    i downloaded the version of i tunes 7.5 and now when i try and play my songs they have a little exclamation point next to them and it says something like; "could not locate this file would u like to locate it?" i click yes and it takes me to My Music

  • Photo syncing trouble

    just got my iPhone 4s today and i'm having trouble syncing my photos to it on iTunes. anybody else with this problem?