none
Opening a saved Outlook customized form after moving to another folder RRS feed

  • Question

  • After putting in my customized form all code I needed, I published my form. The way our organization works with form, is that the published form opened in the same folder as published, user fill out all items and then form approved by his manager and saved in the same folder. In Item_Open event I included code to make checkbox "Manager Approved" disabled after manager checked checkbox and saved the form. This works fine and after director of department open the form again, checkbox "Manager Approved" is disabled.
    Now director has to approve the form too, check checkbox "Director Approved", save form again and in this case approved by director form moved to another folder for IT processing using function Item.Move in Item_Write event. I also included in Item_Open event code to make checkbox "Director Approved" disabled after director checked checkbox and saved the form. But when form is opened in another folder after saving by director and moving, checkbox "Director Approved" still enabled and I found that vbscript in Item_Open event don't run after form is opened in another folder.
    Is this mean that form became "one-off" after moving to another folder? Is there any way to make code run in Item_Open event to make checkbox disabled?
    Thursday, January 12, 2012 1:42 PM

Answers

  • Although in general, publishing to more than one folder is discouraged. It's a maintenance nightmare that can lead to multiple versions published and causing forms cache corruption.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
    "Eric Legault [Outlook MVP]" <=?utf-8?B?RXJpYyBMZWdhdWx0IFtPdXRsb29rIE1WUF0=?=> wrote in message news:84f61ffb-75c9-4a89-b1bd-74e7c1ad674f...
    It sounds like you haven't published your custom form definition to the folder that the item is moved to.  You should publish it to every folder library that the item may be stored in, or publish it to the Organization or Personal Forms Library.
    Eric Legault
    MVP (Outlook)
    About me...

    Ken Slovak MVP - Outlook
    • Marked as answer by Bruce Song Monday, January 23, 2012 6:31 AM
    Thursday, January 12, 2012 3:48 PM
    Moderator
  • True!  Microsoft recommends using the Personal Forms library.

    How to determine where to publish a custom Outlook form:
    http://support.microsoft.com/?kbid=290802


    Eric Legault
    MVP (Outlook)
    About me...
    • Marked as answer by Bruce Song Monday, January 23, 2012 6:31 AM
    Thursday, January 12, 2012 4:02 PM
    Moderator

All replies

  • It sounds like you haven't published your custom form definition to the folder that the item is moved to.  You should publish it to every folder library that the item may be stored in, or publish it to the Organization or Personal Forms Library.
    Eric Legault
    MVP (Outlook)
    About me...
    Thursday, January 12, 2012 3:45 PM
    Moderator
  • Although in general, publishing to more than one folder is discouraged. It's a maintenance nightmare that can lead to multiple versions published and causing forms cache corruption.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
    "Eric Legault [Outlook MVP]" <=?utf-8?B?RXJpYyBMZWdhdWx0IFtPdXRsb29rIE1WUF0=?=> wrote in message news:84f61ffb-75c9-4a89-b1bd-74e7c1ad674f...
    It sounds like you haven't published your custom form definition to the folder that the item is moved to.  You should publish it to every folder library that the item may be stored in, or publish it to the Organization or Personal Forms Library.
    Eric Legault
    MVP (Outlook)
    About me...

    Ken Slovak MVP - Outlook
    • Marked as answer by Bruce Song Monday, January 23, 2012 6:31 AM
    Thursday, January 12, 2012 3:48 PM
    Moderator
  • True!  Microsoft recommends using the Personal Forms library.

    How to determine where to publish a custom Outlook form:
    http://support.microsoft.com/?kbid=290802


    Eric Legault
    MVP (Outlook)
    About me...
    • Marked as answer by Bruce Song Monday, January 23, 2012 6:31 AM
    Thursday, January 12, 2012 4:02 PM
    Moderator
  • Hi Bpl43,
     
    How about the problem on your side? Do you still need any assistant about the problem? If you still show any concern on the problem, just feel free to let us know. 
    Best Regards,
    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Tuesday, January 17, 2012 8:56 AM