![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I've created an internal survey form (radio buttons and comments text field)
and I would like to have a command button that sends the form back to the sender (me). In the design the form area I've put the same content in both the edit compose page and edit read page and basic code Sub CommandButton1_Click() item.to = " item.send End sub and it works in the compose page but not in the edit read page which is what people will see first and I would like them to respond from. SO the person should click on the new email and beable to click on a submit button that returns the form to me. Any help would be great thanks -J |
Ads |
#2
|
|||
|
|||
![]()
If the form doesn't run code after you have sent or saved an item using the published form, you probably have done something to "one-off" the form. Outlook 2003, Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email Security Update will not run code on one-off forms; see http://www.outlookcode.com/d/secforms.htm for more information on this issue.
To ensure that a message form does not one-off: -- Make sure the "Send form definition with item" box on the (Properties) tab of the form is *not* checked. [1] -- Publish the form to the Organization Forms library on your Exchange Server. -- Set the Forward action on a custom form's (Actions) page to the published custom form. Many other things can cause one-off forms. If the above steps don't work on a new item created with your form, see http://www.outlookcode.com/d/formpub.htm#oneoff for other possible causes. Also, note that it's unlikely that the user will have permission to resend the original item, which is what your code does. Alternatives are to forward the item or to create a new item, populate its properties from the data in the current item, then send it. [1] Whenever you publish a message form, Outlook will suggest that you may want to check the "Send form definition with item" box to ensure that the recipient will have the form, especially if you're sending to someone via the Internet. In the current Outlook security environment, this suggestion is obsolete. Ignore it unless your form has no code behind it. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Janelle" wrote in message ... I've created an internal survey form (radio buttons and comments text field) and I would like to have a command button that sends the form back to the sender (me). In the design the form area I've put the same content in both the edit compose page and edit read page and basic code Sub CommandButton1_Click() item.to = " item.send End sub and it works in the compose page but not in the edit read page which is what people will see first and I would like them to respond from. SO the person should click on the new email and beable to click on a submit button that returns the form to me. Any help would be great thanks -J |
#3
|
|||
|
|||
![]()
I've unchecked the "send form definition with item" box and now if I send the
survey to myself it returns with an error "the custom form could not be opened. Outlook will use an Outlook form instead. The object could not be found." I've tried setting a custom action as a forward action but when i try and send the survey back after receiving it - it always says there must be a recipient entered in the to, cc, bcc field - even if the to field in the is present to my email address. Am I doing something wrong there? Because I noticed when testing it that a colleague was able to forward the form back to me with the results still entered. But I can't seem to appropriatly set the field values so that it automatically forwards to me. -J "Sue Mosher [MVP-Outlook]" wrote: If the form doesn't run code after you have sent or saved an item using the published form, you probably have done something to "one-off" the form. Outlook 2003, Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email Security Update will not run code on one-off forms; see http://www.outlookcode.com/d/secforms.htm for more information on this issue. To ensure that a message form does not one-off: -- Make sure the "Send form definition with item" box on the (Properties) tab of the form is *not* checked. [1] -- Publish the form to the Organization Forms library on your Exchange Server. -- Set the Forward action on a custom form's (Actions) page to the published custom form. Many other things can cause one-off forms. If the above steps don't work on a new item created with your form, see http://www.outlookcode.com/d/formpub.htm#oneoff for other possible causes. Also, note that it's unlikely that the user will have permission to resend the original item, which is what your code does. Alternatives are to forward the item or to create a new item, populate its properties from the data in the current item, then send it. [1] Whenever you publish a message form, Outlook will suggest that you may want to check the "Send form definition with item" box to ensure that the recipient will have the form, especially if you're sending to someone via the Internet. In the current Outlook security environment, this suggestion is obsolete. Ignore it unless your form has no code behind it. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Janelle" wrote in message ... I've created an internal survey form (radio buttons and comments text field) and I would like to have a command button that sends the form back to the sender (me). In the design the form area I've put the same content in both the edit compose page and edit read page and basic code Sub CommandButton1_Click() item.to = " item.send End sub and it works in the compose page but not in the edit read page which is what people will see first and I would like them to respond from. SO the person should click on the new email and beable to click on a submit button that returns the form to me. Any help would be great thanks -J |
#4
|
|||
|
|||
![]()
Try calling Item.Recipients.ResolveAll before you call Item.Send.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Janelle" wrote in message ... I've unchecked the "send form definition with item" box and now if I send the survey to myself it returns with an error "the custom form could not be opened. Outlook will use an Outlook form instead. The object could not be found." I've tried setting a custom action as a forward action but when i try and send the survey back after receiving it - it always says there must be a recipient entered in the to, cc, bcc field - even if the to field in the is present to my email address. Am I doing something wrong there? Because I noticed when testing it that a colleague was able to forward the form back to me with the results still entered. But I can't seem to appropriatly set the field values so that it automatically forwards to me. I've created an internal survey form (radio buttons and comments text field) and I would like to have a command button that sends the form back to the sender (me). In the design the form area I've put the same content in both the edit compose page and edit read page and basic code Sub CommandButton1_Click() item.to = " item.send End sub and it works in the compose page but not in the edit read page which is what people will see first and I would like them to respond from. SO the person should click on the new email and beable to click on a submit button that returns the form to me. Any help would be great thanks -J |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Edit Compose Page and Read Page buttons are grayed out | Richard | Outlook - Using Forms | 3 | February 1st 07 09:52 PM |
OLK2007 : Compose vs Read page actions | Bill Billmire | Outlook - Using Forms | 4 | January 16th 07 05:40 PM |
read page to look like compose page | Steve Worcester | Outlook - Using Forms | 2 | December 13th 06 05:14 PM |
"Edit Compose Page" disabled | Dave S. | Outlook - Using Forms | 3 | October 5th 06 04:32 PM |
Edit Read Page | MeMatthew | Outlook - Using Forms | 14 | September 14th 06 01:13 PM |