I am trying to make my custom task form (of Visual Studio Sequential Workflow) to switch view to "Submitted" in case someone has already submitted this task before, since this task could be assigned to multiple people.
Target scenario: in case task has already been submitted by one user and another user is opening the form for this same task (by button from Outlook Task E-mail notification) user would see a message informing that task has already been submitted, by who and with which result.
I have designed a "Submitted" view for that purpose and now researching how to do the logic: either using Data tab > Rules > Form Load and set up actions there or using Developer > Loading Event and write it in code under FormEvents_Loading event in Visual Studio Tools for Applications.
I would prefer the VSTA option. Are there code examples of this (or something similar) being done available? I appreciate any hints you might have. Thanks.