Friday, April 12, 2013

Remove Accidental Infopath Link to Visual Basic

SharePoint is designed to work in concert with other tools from Microsoft. This includes InfoPath, the bizarro-world form design program for people who hate nice things and love corporate business structures/XML. InfoPath allows you to make complex forms that launch poorly and need magic, special links to be edited in browser, and otherwise eat chunks of system resources so vast you would think Margaret Thatcher was still in power, but whatever, it's what you have.

Sometimes you will need to put special rules on fields in InfoPath, let's say when you want your submit buttons to disappear so your people cannot, say, save all their forms to desktop and overwrite other people's submissions and generally cause havoc within your system, triggering hundreds of workflows, none of which work quite right out of the box anyway.

To work with the Button you will be Custom Programming to Submit a form, you will open the Properties window. It contains a large trap within it, marked "Edit Form Code."

Your finger will slip. You are tired, it is raining. You will slip.

You will click "Edit Form Code."

Then, your system will wheeze to a halt as your form binds itself to the Damned, whichever variant of Visual Studio you have presently available. You will beat on the Cancel button like it is a bad pony, to no avail, and when you attempt to publish your form next, it will fail spectacularly to publish and insist on using the INFOPATH FILLER which is like unto the pit of despair.

Despair not!

Go to the Form Options.
Click Programming.
Click "Remove Code."

You're welcome.

No comments:

Post a Comment