PerfectForms Forums » General

Can I hide the print button on the printed page

(8 posts)
  • Started 2 years ago by twoodroof
  • Latest reply from kcrossle

Tags:

  1. twoodroof
    Member

    I can add the print button onto my form and it generates the pdf easily. The only issue I have is that I don't want to have the print button appear on the resulting pdf file. Is there a way to hide the button on that final pdf?

    Thanks,
    Tommy

    Posted 2 years ago #
  2. ijobling
    Member

    if you 'hide' any objects on your form, they won't show in the pdf file. So if you are using the actual 'print' button, change that to use a standard button, and then run a behaviour under that 'when clicked' event to hide the button followed by the print action

    Posted 2 years ago #
  3. twoodroof
    Member

    Thanks! That worked great. I set the behavior to hide the button => print => show the button. That way the button is back when the user looks at the form but it does not get printed.

    Thanks again,
    Tommy

    Posted 2 years ago #
  4. kcrossle
    Member

    I went aha! when I saw this but when I went to try it the Run Behavior / Select a Behavior doesn't offer the actual Print button as a choice. What am I missing?

    Posted 2 years ago #
  5. twoodroof
    Member

    I did it by linking the following steps in this order on the "Button is Pressed" behavior:

    1 - Set State (under Object Commands) => Set the button object to "Hidden"
    2 - Print (under Form Commands) => Print the page
    3 - Set State (under Object Commands) => Set the button object to "Normal"

    I hope this helps.

    Note: I made it a regular button and not a built in Print button.

    Tommy

    Posted 2 years ago #
  6. kcrossle
    Member

    Thanks Tommy - I see you're doing the Print from a form. I'm trying this from a Report. And in Report design (under Form Commands) there is no Print command (!).

    Keith

    Posted 2 years ago #
  7. ijobling
    Member

    Keith
    there isn't a 'print' command as you've seen in reporting, but I can see it would be useful. have raised it with our development team to look into and see if they can get this added for a future release

    Posted 2 years ago #
  8. kcrossle
    Member

    Thanks - this would be well received here. We've started producing (& printing) some graphic reports for sr. management but all the clutter of buttons diminishes their 'polish'.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in or register to post.

Contact

1917 Palomar Oaks Way
Suite 160
Carlsbad, CA 92008
866.900.8588

  picture  picture  picture  picture