Can one insert a collapsible list in an outlook email?
Asked Answered
B

3

10

Is it possible to insert collapsible text in an Outlook email ?

[+] header name When the reader clicks the [+] he will expand the text.

Tried these methods

  1. Making collapsible text without Java and attaching as text. Imports fine into an outlook email. But expansion doesn't work.

  2. Tried with Outlook VBA. Works fine with the .docm format outside of Outlook in Word. But doesn't work in Outlook.

Berkow answered 7/5, 2016 at 22:6 Comment(4)
Email is relatively passive. It's remotely possible that you could do this in HTML content using Javascript, but I'm almost positive that Outlook would prevent the script code from executing for security reasons and that most corporate malware scanners would also block the content.Collaborationist
@KenWhite I understand. Outlook VBA is a better option. I have needed this for a long time. Please specify if anything unclear in the question. I've also shared the steps I've already tried. Also, this is really easy to implement in Lotus Notes. But we're using Outlook.Berkow
VBA is not going to do what you want; AFAIK, it won't execute inside an email body. As I said, it's remotely possible in Javascript.Collaborationist
I expected it to work like MS-Word where styling text as a heading enables you to "Collapse or expand parts of a document." Sadly, it does not seem to work.Isodiametric
S
4

H Mayan,

This can't be done in Outlook as it does not support the CSS required.

You can implement the practice of progressive enhancement whereby you code a CSS-only solution like this:

#toggle {
  display: none;
  font-size:14px;
}
#toggle:target {
  display: block;
}
#toggle:target + .close {
  display: block;
}
.close {
  display: none;
}
<a href="#toggle">REVEAL +</a>
<p id="toggle">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

<a href="#" class="close">HIDE -</span>

And then use a media query, usually @media screen and (max-width:480px) to show/hide on supported devices and mso conditional css to give a simple fallback for Outlook.

Saddleback answered 6/3, 2018 at 11:5 Comment(2)
Hello, what do you mean by fallback for outlook? Is there any specific css properties for outlook?Chitchat
Vimalan: A fallback is a position you go to when an original objective cannot be reached, with the idea that it's better than nothing. Here, as Jamie indicates, Outlook can't handle this so the fallback stated is the method of making the behaviour still acceptable if the email happens to get opened in OutlookEdessa
C
0

just another ideea to through your way. What about a macro that creates a table with 2 columns, first column contains a trigger/toggle, second contains the expandable area. When you click on the toggle, the entire row toggles between height = autosize and height = 1 row.

Curculio answered 3/7, 2020 at 11:54 Comment(1)
Could you share a screenclip GIF?Berkow
I
0

You can try:

<details>
<summary>Title</summary>
Body
</details>
Izanagi answered 2/4 at 19:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.