I've read other threads concerning this issue, and while they helped me understand what exactly is going on, they don't seem to solve my problem ...
I've created an Infopath form, and I've chosen not to have the K2 Task Pane. I would like to remove the other menu submit button that K2 automatically adds, mostly because of some code that I need to run before a form is submitted. I would also like to avoid the user pressing submit by accident (instead of maybe save). The form requires quite a bit of time to fill out, so the user will be periodically saving the form and return to it from time to time to complete. A custom submit button would appear on the form once certain conditions are met and the user changes the form's status.
I've tried the solution proposed in another thread, about re-publishing the template, but it doesn't work for me. I'm publishing the form to a Sharepoint list, and if I open up a form, save it locally, enter design mode, uncheck the "Enable the Submit menu item on the File menu" and re-publish the template, I get the following error when I try to open up the form again from Sharepoint:
x-soln://9453a9b9aac8494e/TrustRecs.xsd#/schema/import[1]
System error: -2147287038.
I've tried it a bunch of different ways and I always get the same error. Seems to be some kind of installation error?
I've also noticed a Data Field called "K2DisableSubmitButton" that's included in K2 Infopath processes. Unfortunately this field is always set to false when the Infopath process wizard is run (even if I set it to true before running the wizard). Would I have to create a custom process template to set this field to true? I'm not sure if it would remove the submit button anyways.
Any help would be greatly appreciated.
Infopath submit button
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.