Answered by:
javascript doesn't work in outlook

Question
-
Hi,
I have javascript that hides section. But in outlook my section is not hidden. Any idea why?
Tuesday, July 2, 2013 2:15 PM
Answers
-
I assume you are referring to the preview pane (the read only version of the form shown at the bottom or right hand side of the list). If so, this form type does not support any script.
If you are clicking on a record, causing it to open in a new window, then we will need more detail. That functionality is fully supported and should work.
- Proposed as answer by Neil BensonMVP, Moderator Tuesday, August 20, 2013 5:45 AM
- Marked as answer by mimamar Thursday, August 22, 2013 9:22 AM
Monday, August 19, 2013 7:36 PM
All replies
-
Do you mean that you are trying to create an email template (HTML+JavaScript), but that JavaScript is not work when you are opening that email in MS Outlook ??
Also I will appreciate that if you:
- Explain the aim that you are trying achieve.
- Provide me with the code you are using.
Regards,
Sunday, August 18, 2013 11:10 AM -
Hi,
I have CRM for outlook. So when I list the records, for example Accounts from Outlook, the script I have for disabling some fields doesn't work.
Script works in CRM but not in CRM for Outlook.
Monday, August 19, 2013 7:16 AM -
I assume you are referring to the preview pane (the read only version of the form shown at the bottom or right hand side of the list). If so, this form type does not support any script.
If you are clicking on a record, causing it to open in a new window, then we will need more detail. That functionality is fully supported and should work.
- Proposed as answer by Neil BensonMVP, Moderator Tuesday, August 20, 2013 5:45 AM
- Marked as answer by mimamar Thursday, August 22, 2013 9:22 AM
Monday, August 19, 2013 7:36 PM -
HI,
Thank you for you reply. Yes, I was referring to the preview pane in outlook. So, there is no way to hide fields/sections/tabs in preview pane in outlook?
Tuesday, August 20, 2013 6:09 AM -
Yep that's right - no JavaScript on preview pane. Usually you would just display all tabs/sections/fields by default so that they are visible in the preview pane no matter what. Or if it's really a problem just hide it by default and so they will only be able to see it when opening the form.
Paul
If my response helped you find your answer please show your thanks by taking the time to "Mark As Answer" and "Vote As Helpful".
Tuesday, August 20, 2013 8:19 AM -
This is where fully looking at all of the possible forms is necessary. Building the form to allow all of the different versions to perform the way you want them to (when some cannot execute script) is increasingly difficult. Make sure you plan for how you want the read only/outlook preview and bulk edit forms to behave.
Tuesday, August 20, 2013 1:51 PM