Is it possible to hide the attachement symbol of for example an attached pdf file in a body field? so only the filename is visible?
And also the other way round.
Is it possible to hide the attached file filename so only the symbol/icon is visible?
Any code…formula etc.
Appreciated
Thank you
Subject: Attachement icon/symbol…hide/unhide?
-
First hide the attached file name. Search for $V2AttachmenOptions on this forum. Than create a computed for display field with the value @AttachmentNames
-
Have the icon, but no file name. If you know it will be a pdf no problem. If you have different file types, a little bit of a problem. Do the same as #1 to hide the attached file. Then scrape the pdf icon from someplace or use the document icon from the view selections vwicn041.gif. Play around with this formula on your form. I use something like it in views. It should get you on the right track. Of course replace the braces with brackets.
ATT := @AttachmentNames;
DBName := @Subset(@DbName;-1);
LD := @Left(DBName;“.nsf”);
DBPath := @ReplaceSubstring(LD; “\”; “/”) + “.nsf”;
“{<a href = "/” + DBPath + “/0/” + DocID + “$File/"><img src = "/” + DBPath + “/vwicn041.gif" border="0" width=15 alt="Link to CAR">}”
Replace the vwicn041.gif with the pdf icon if that is what you want to use. This is not the exact answer, but I think it will get you on the right track. I have to leave some fun for you.
Rgds,
ddubos@virtualcon.com
Subject: RE: Attachement icon/symbol…hide/unhide?
Hi damian
Thank you - great answer
I forgot to tell you that it is in the notes client and NOT the web.
I got the first one working with @attachementnames formula.
Do you have any ideas for the second one…hiding the text from an attached file and just displaying the icon?
Thanks