Wednesday, July 3, 2013

Force Infopath Form to Open in Browser

Approval workflows are tricky and fragile and counterintuitive, and a lot of what I do on the daily is customize them to get around that issue. I repair issues like how they don't approve content but instead set an approval on a whole new unrelated field, or how when you set them up on Infopath forms, those forms show up inside whatever damn application they please regardless of even system-wide settings that are clearly tickyboxed to "Open In Browser, Not Everyone Has Or Uses Infopath."

Tricky.
  1. Open Sharepoint Designer.
  2. Open the offending workflow.
  3. Open the workflow within that workflow that contains the renamed out-of-the-box Approval workflow.
  4. Tricky.
  5. Click "Change the Behaviour of an Individual Task."
  6. Find the one that sends an e-mail to a Task Approver.
  7. In the first line of the utterly useless bullet points is something that, nominally, will allow people to open a form for review.
    • It is not a form for review, it is a portal to a severe system lockup.
  8. Change the link from whatever nonsense it is using to
    [%Current Item:Encoded Absolute URL%]?OpenIn=Browser
  9. Celebrate, as this actually works.
Now your infopath document-style XML form opens in the browser for all your users who have InfoPath installed but not the system resources to run it. Good day!

1 comment:

  1. This is useless, Alex. We need a way to defy Microsoft entirely. WHOLLY. A way to open HTML forms in an HTML browser! The dream of a better world.

    ReplyDelete