Hello,
I've done some research before posting this. We're looking at a qRules injected IP form published to a SharePoint forms library. Apparently it is not possible to add the IP Ribbon button for "Print preview" to an InfoPath view onto a browser form.
Why? What's the big deal? Please help me understand.
My situation:
My company's contractors access our SharePoint site and fill in a qRules injected InfoPath form to notify us about work they are going to do on our electricity network. This work will result in a temporary power outage for a number of customers (i.e. people who live in houses and whose power will be cut for a while). The IP form includes a print view that is intended to be, -- well --, printed, so the contractors can print off a couple dozen copies and stick it into the letter boxes of the households affected.
I've designed an IP form with a few views. On the first view, the contractors fill in the details of the power outage. On the next view, they check the data and submit it to a SharePoint list, using qRules SubmitToSharePointList. That all works fine. qRules rocks. Big time.
My form does not show the InfoPath ribbon. For a reason. It would confuse the end users who are filling in the form. These are highly specialized guys who put their lives on the line (literally) every day, working on live power lines with 33KV or 11KV. They call that "low" voltage. I have great respect for them. They buzz, literally. But they are not very computer literate. I don't want to make their lives even more complicated. I want to present them with a form that has big, friendly buttons that they can click. Very Douglas Adams, in a way. Don't panic, and all.
So my form has several views:
- enter the outage data - street, start time, end time, comments.
- review and check for correctness and submit to our company's SharePoint list
Fine. Then ...
- click to see a view to print a notice for the householders of the affected street, then just use the print command of the browser to print off a couple dozen copies of the notice.
The form's Print view has a few buttons to navigate around the form views. UX and all. Very basic. End users, remember? When the print view shows in the browser, the form can be printed from the browser, but the navigation buttons will still show and will print on the paper copies. Ugly. Not desired.
My research tells me that in order to hide the navigation buttons on the print output, I would need to employ the "print preview" command that is found in the IP ribbon.
Now, here's the catch: I don't want to show the InfoPath ribbon.
AT ALL!
The ribbon will only confuse the guys. If there are icons to click, they will click them before it makes sense. They will get confused. I only want them to see, and be able to click, things that they actually need to see.
Therefore, I'm hiding the IP ribbon by specifying the form options in InfoPath Designer.
I need a button/functionality to open the print preview, sans navigation buttons, in a new browser window. The same thing that the IP ribbon "Print preview" does. But I don't want it to be on the ribbon. I need it to be on the form.
Alternatively, I could just show a view without any buttons but this would have to show in a new window. I've seen posts in this forum that says it's possible to do that, but that this is not encouraged, since there may be a disconnect between several instances of a form and saving data. Thing is, I don't want to save anything with that view. It's read only, meant to be printed only, not saved, so the user won't be able to save data from the print view.
Thanks for still reading this. :)
I need either:
- a functionality of some kind to allow me to add a button to my print view that will render the InfoPath version of a Print Preview (in the same window, but hiding the form buttons), as triggered by the ribbon command, or
- a functionality to open a view that does not have any nav buttons, but see it in a new browser window, so my guys on the ground can then just print a few copies off the new window and after that, just close it.
Does that make sense? Is that too much of an ask?
If this involves code, I'm happy to tackle the learning curve. The form is qRules injected, so it's already and admin-approved form and a few more lines of code won't make a difference. I'd just need to know what these lines would be and how/where to apply them.
cheers, teylyn