Home > Default > How do I disable printing of my PDF if a text field isn't filled in?

How do I disable printing of my PDF if a text field isn't filled in?

October 11Hits:1
Advertisement
Hello all I'm currently trying to find a way to make the print button of my pdf not work if say a necessary textfield wasn't filled in?
I take it that the standard validation scripts won't work?
The very helpful fellow from a thread seemed pretty sure it couldn't be done.
In short in order the print button to work the form must have certain textfields populated with content if the combo box next to them has a certain value selected.
Say for example
A text field by the name AIMCode_R1 has no content in it but it's related combobox "Loc_R1" has value 2 currently selected then before printing the pdf must validate that textfield "AIMCode_R1" has content and visversa if "AIMCode_R1" has content then "Loc_R1" must haveĀ  value 2,3 or 4 selected before the pdf will allow the user to print.

Answers

In that case all the responses above are incorrect. You can write whatever conditions you want before calling the print command.
Of course, the user will still be able to print the file using the built-in Print command, in which case you can use some of the ideas mentioned above, but the file will still print. One approach I like to use is to reset the form if some required fields are not filled-in, so the printed copy is blank, and then re-fill it afterwards, so the user can complete it.

Read other 7 answers

Tags:

Related Articles

  • How do I disable printing of my PDF if a text field isn't filled in?October 11

    Hello all I'm currently trying to find a way to make the print button of my pdf not work if say a necessary textfield wasn't filled in? I take it that the standard validation scripts won't work? The very helpful fellow from a thread seemed pretty sur

  • How to create pdf files with text field dataNovember 30

    how to create pdf files with text field dataThat looks like it should work, but it doesn't. I opened the PDF I had created from Word in Acrobat (X Pro). Went to File > Properties. Selected "Change Settings". I then enabled "Restrict edit

  • Is there a way to print the check register with the Text fieldOctober 11

    Hi, Is there a way to print the check register with the Text field and also each item's Text field?" When we enter a invoice we enter a generic text on the Basic Data tab then enter a "+" on each individual line item which in turns defaults

  • Interactive pdf form with text fields. Chinese fontsOctober 11

    Hi All We have designed an interactive pdf with text fields. We need the text fields to be in a Chinese font. I understand that this cant be done in Indesign (change the inputting font to Chinese) I have moved the file over to Acrobat Pro and used th

  • How to disable print icon in pdf file, which is created using servletOctober 11

    Hai, I have created one pdf file using HttpServletResponse.setContentType("application\pdf"). I want to disable the toolbars of the created pdf file. I want to disable the print, save and other icons in pdf file. Can anybody help me to resolve t

  • Disabling print preview in pdfOctober 11

    May i know how I can disable to pop up? It suddenly appear out of no where and it is messing up with my print outs. My colours were totally off. Please Help. Thank you.what pop-up? What system? What else? You need to be much more specific and explain

  • Disable print option in PDF exportNovember 30

    Hi guys - I'd like to use the PDF export of slideshows as a quick way of generating documents for clients to view, but during tests I find the resulting PDF allows for pages/images to be printed. How would I switch this option off? Can I switch it of

  • Superscript Characters not printing in a PDFOctober 11

    I was wondering if anybody knows of a work around to print superscript characters in a table. I am a Structural Engineer and use tables for my loadings however instead of m^2 (the 2 is superscript and no ^) I get m when I print my document to a pdf.

  • Do I need to use javascript to get a text field in a PDF form to aut fill with current/today's date?October 11

    I have a form for booking appointments and would like the date field to automatically fill with today's date and to print. I have set the text field's format to "Date" and when I place the cursor into the date field, today's date shows. It disap

  • PDF-form looses text style on another computerOctober 11

    I created a PDF-form with text fields using our corporate font. My colleague has to open it in the Preview and insert text into those fields (she has corporate font installed). But while opening and typing the text, she got my text style lost (corpor

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.509 s.