Attachments preview
Hi.
Is there a way to show a preview of an attachment in the form?
I need to attach a picture taken from a smartphone to elements of a list ; then I'd like to make a preview of that when you're in display mode...
Is it possible?
Thanks for your help.
Luca
Is there a way to show a preview of an attachment in the form?
I need to attach a picture taken from a smartphone to elements of a list ; then I'd like to make a preview of that when you're in display mode...
Is it possible?
Thanks for your help.
Luca
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Hello, Luca!
Please, check out this topic, I believe it can help you!
Please, check out this topic, I believe it can help you!
Cheers
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Luca,
The example in the other topic doesn't have hyperlinks included, but you can modify code like this and it should work:
The example in the other topic doesn't have hyperlinks included, but you can modify code like this and it should work:
Code: Select all
var preview = "";
$("a[href*='/Attachments/'").each(function(){
preview += "<a href='" + $(this).attr("href") + "' target='_blank'><img class='thumbnail' src='" + $(this).attr("href") + "'></a>";
});
if (preview == "") {
preview = "There are no items to display."
}
$(".imgPreview").html(preview);
Cheers
When I preview an email body in "Email and attachments" view I do NOT see the attachment names.
When I preview the same email in "Email" view, I DO see the attachment names.
This is annoying, I want to see the email body preview to show the same thing in both views.
When I preview the same email in "Email" view, I DO see the attachment names.
This is annoying, I want to see the email body preview to show the same thing in both views.
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear benniefut,
Are you sure you've added Attachments field to both Content Types? Can you show us screenshots of both forms in designer and in the browser?
Are you sure you've added Attachments field to both Content Types? Can you show us screenshots of both forms in designer and in the browser?
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests