Callout Javascript to remove e-mail as attachment option?

Hi,
In our organisation, we're running Sharepoint 2013. On hovering over every folder/file there is a drop down list with a e-mail as attachment option.
Is there any javascript which will modify a callout and remove e-mail as attachment?
Thanks.  

Hi,
From your description, the “e-mail as attachment” might be a button in the Edit Control Block(ECB) menu of your library and you want to hide it using JavaScript.
The links below about how to customize the ECB button for your reference:
http://danielnardi.net/customising-the-sharepoint-2013-ecb/
http://extreme-sharepoint.com/2011/10/29/hide-menu-ecb/
http://platinumdogs.me/2013/04/18/hiding-sharepoint-ecb-menu-items-for-a-specific-list/
Or you can disable the Callout of this library to achieve the same goal:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ffeb1928-2c9d-49b6-9e72-2511f6ae312b/how-to-disable-callout-in-document-library?forum=sharepointdevelopment
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • New Mail with Attachment option

    Hi all--
    When right-clicking on an image or pdf in the Finder, I get a popup menu with an option to compose a new email with an attachment that is listed below the choices to label the document. Mail wants to launch but it's not setup to run and no accounts are enabled. MS Outlook is the mail software that is in use.
    How did that option get there, and what settings do I need to change so that Outlook comes up with a new compose window and the image/pdf attached?
    The Mac is running OS X 10.7.5
    Thanks
    --Mitch

    Here is the error
    ++++++++++++
    Process:         Automator [44579]
    Path:            /Applications/Automator.app/Contents/MacOS/Automator
    Identifier:      com.apple.Automator
    Version:         2.3 (346)
    Build Info:      Automator-346004000000000~4
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [158]
    User ID:         505
    Date/Time:       2013-10-09 19:38:14.844 -0700
    OS Version:      Mac OS X 10.8.5 (12F45)
    Report Version:  10
    Interval Since Last Report:          108865 sec
    Crashes Since Last Report:           808
    Per-App Interval Since Last Report:  556 sec
    Per-App Crashes Since Last Report:   8
    Anonymous UUID:                      463E45B8-D2A2-6B72-571C-536147412BAC
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    objc[44579]: garbage collection is ON
    *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: cacheDictionary'
    terminate called throwing an exception
    abort() called

  • Outlook and mac mail client attachements freeze, skype freeze

    Hi all,
    I am working in a company that many users have Macbooks Air and Pro. One specific user with a  a Macbook air that has a clean install of Yosemite (not even a week ) started to have problems with the mac mail client attachements. Every time he tried to insert a file the mail client frozen and had to force quit. After a while i observe the same issue on Outlook mail client. At last after a reboot that he did to see if that gonna solve the problem then Skype started to freeze also and had to quit every time. So now, so far none of the above apps work as expected and the Skype doesn't work at all. It has to be noted here that we did the upgrade from Mavericks to Yosemite to solve the Skype issue that he had also for a couple months now and it wasn't resolved from Skype's support team( never answered). So for now we have again the same problem and and with a fresh install of Yosemite i am started to thinking about hardware issues or even broken drivers, code to Yosemite etc. The laptop has an encrypted SSD using Filevault, SEP, Office and Acrobat Reader nothing else.
    Any thoughts to solve this issue?

    Hi Brody,
    Thank you for your answer, yes i did erase the hard drive and install Yosemite!! After a second call that i made with my client he said that first of all:
    The problems of the Outlook and mac mail client attachements freeze started after he install Cisco VPN Anyconnect (I don't think that this has to do anything with the freezing) so he tried to remove this using Appcleaner. After this not only the Outlook and mac mail client attachements freeze problem was remaining but he saw that skype started to freeze also. No matter how many uninstall and install he made to the Skype, Skype continues to freeze. For the mail freeze i advise him to use the verify/repair disk permissions and so far that one solved. The remaining problem is the Skype Freeze so far. I also tried to remove the Skype following this https://support.skype.com/en/faq/FA12073/how-can-i-completely-uninstall-and-then -reinstall-skype-for-mac-os-x
    so to avoid Appcleaner and still the problem persist even with older versions of Skype. I also create another profile account in Yosemite and Skype seemed to played well there. But i would need to solve in his account so to avoid any file transfer. Do you have any idea why that happened? Is it a file permissions problem? Corrupt/missing files in users profile? This one problem had in the past as i wrote in the previous comment and couldn't work at that time.
    Any thought on that? What could be wrong?
    Thanks

  • Urgent help needed with un-removable junk mail that froze Mail!!

    Urgent help needed with un-removable junk mail that froze Mail?
    I had 7 junk mails come in this morning, 5 went straight to junk and 2 more I junked.
    When I clicked on the Junk folder to empty it, it froze Mail and I can't click on anything, I had to force quit Mail and re-open it. When it re-opens the Junk folder is selected and it is froze, I can't do anything.
    I repaired permissions, it did nothing.
    I re-booted my computer, on opening Mail the In folder was selected, when I selected Junk, again, it locks up Mail and I can't select them to delete them?
    Anyone know how I can delete these Junk mails from my Junk folder without having to open Mail to do it as it would appear this will be the only solution to the problem.

    Hi Nigel
    If you hold the Shift key when opening the mail app, it will start up without any folders selected & no emails showing. Hopefully this will enable you to start Mail ok.
    Then from the Mail menus - choose Mailbox-Erase Junk Mail . The problem mail should now be in the trash. If there's nothing you want to retain from the Trash, you should now choose Mailbox- Erase Deleted Messages....
    If you need to double-check the Trash for anything you might want to retain, then view the Trash folder first, before using Erase Junk Mail & move anything you wish to keep to another folder.
    The shift key starts Mail in a sort of Safe mode.

  • Open Attachment option in Mail opens incorrect invite in Calendar

    My issue: if I double click or use the Open Attachment option in Mail for calendar invites, an invite from 2 years ago opens in Calendar for me to accept. If I use the Add to Calendar function, no problem & reads like it should do.
    I upgraded to ML about 2-3 weeks ago and Mail was spectacularly painful with the merge from SL not working at all. Calendar seemed to be ok, however this usse has started to appear in the last 24 hours.
    Ivites can be accepted no dram using the iPad or my wifes iPhone just seesm to beon the Mac that its a problem.
    Any thoughts/ideas/fixes would be great.
    Cheers.

    This link solved the problem
    https://discussions.apple.com/thread/4165985?start=15&tstart=0

  • Question: Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages? - Problem: I have 1400 e-mails with attachments that need to be conv

    Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
    - Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
    System: PC Windows 7 using Acrobat X Prof. - Thank you!

    Hi ,
    There is an option of embedding index for faster search while converting email to a PDF .
    However I am not sure that will serve your purpose or not .
    I would recommend you to get in touch with Microsoft support as well .
    Meanwhile I'll work on it and get back to you in case I get a desired solution .
    Regards
    Sukrit Dhingra

  • Mailed iCal attachment shows right date but clicking will put appointment on wrong year, month and day. Even names involved are wrong!

    Running Mountain Lion on MacBook Air and MacBook Pro. Suddenly a mailed iCal attachment showing the right date, time and attendees ends up years and months off on iCal with totally wrong attendiees, when clicked in Mail. iCal synced to iCloud. This may be very trivial for some of you but I need help, please.
    Thank you.

    I ran into this exact issue after migrating a time machine backup from an older macbook air to a new macbook pro.
    The following steps solved my issue:
    1) Backup your current mac
    2) Create a new user account on your mac, and login to that account.
    3) While logged into the new user account, right click the time machine drive and select "get info" > Click the lock icon at the lower right corner so that you can make permission changes. Then Click on the "+" sign and add your new user account to the "Sharing & Permissions" window. Be sure to grant your new user "Read & Write" privileges and when you have done so, click on the down arrow and select "apply to enclosed items" This step will allow you to copy the library folder from your old user account to the new account without hitting any permission issues.
    4) Download "TinkerTool" (An application that allows you to enable the viewing of any and all hidden files and folders on your local or mounted hard drives) and check the box that reads "Show Hidden and System Files" and then click "Relaunch Finder.
    5) Lastly copy the Library folder from the older user account on the time machine backup drive to the new user's library folder. Also be sure to copy your Desktop, Documents, Pictures, and Music folders to the new account as well. Open Mac mail and follow the instructions to import the previous accounts mail messages. Once you receive future ics attachments or calendar invites you should be able to click on them and load the proper date and time within your iCal application.
    This worked for me and I hope it works for you.
    Thanks,
    Chris Sampson

  • How do I remove Apple Mail from my hard drive? Over 10,000 downloaded into my mail and continues to freeze up---  I just want to use my gmail account directly

    How do I remove Apple Mail from my hard drive? Over 10,000 downloaded into my mail and continues to freeze up---  I just want to use my gmail account directly

    I go to Gmail to do my email yes, in my browser, but ya know how sometimes you click on a website to email someone and it pulls up apple mail, and then tons of email dump into apple mail and it frequently causes my computer to lock up and have to shut down w/escape.  I thought it would be  better to take it off if I could

  • Sending Mail with attachment and preserving the order of attachment

    Hi Everyone!!!!!!
    My requirement is to send Email with attachment in the same order as they were attached by Sender while composing the mail. I want to preserve order of attachment in the mail and when receiver open a mail, the attached files should be reflected in same order as it was on sender side. In my application,the documents being upload are already in my database. So, user just requires to mark the corresponding check box and enter the Sequence number for each attachment. When he clicks on "SEND" button, the Source file is first written from database to OS level and then files are attached from source available on OS . The attached file name could be anything. Based on the Sequence number file should be attached and send. My current code works fine,but problem it is that the Sequence number is not preserved in my attachment . However, when I traced the output of FOR Loop by inserting it in a table " temp_trace" I found that the Sequence is preserved in the order that I want. So, I think that uploaded files are written on the Operating system in same order but they are not attached in same order. Below is the sample code that is I am using to attach file in email. Here, the user_sequence is the sequence number entered by user.
    for i in (select case when user_sequence is not null
    then trim(to_char(user_sequence ,'09'))||'_'||file_name||'.pdf'
    else ||'_'||file_name||'.pdf' end file_name ,
    file_src,length(file_src) len,cd.doc_id,PRIORITY from
    MIM_CLIENT_DOCS CD,(select DOC_ID ,user_sequence from table P_DOC_AND_user_sequence ) TEMP_TAB
    WHERE CD.DOC_ID = TEMP_TAB.DOC_ID order by case when user_sequence is null then 1 else 0 end, file_name)
    loop
    insert into temp_trace values(i.file_name);
    L_OUT := UTL_FILE.FOPEN(v_oracle_dir,i.file_name,'wb',32760);
    end loop;
    I want my output as
    1_first attachment.txt
    2_second_attachment.docx
    3_abc.sql
    _xxx.txt  ------------------ When sequence is not assigned by user That is null at last.
    Unfortunately, I am not getting attachment in mail in this sequence. Can anyone give me suggestion.
    Sorry for stuff essay and thanks in advance!!!!!!!!!!!

    >
    Please update your forum profile with a real handle instead of "974850".
    My requirement is to send Email with attachment in the same order as they were attached by Sender while composing the mail. I want to preserve order of attachment in the mail and when receiver open a mail, the attached files should be reflected in same order as it was on sender side. In my application,the documents being upload are already in my database. So, user just requires to mark the corresponding check box and enter the Sequence number for each attachment. When he clicks on "SEND" button, the Source file is first written from database to OS level and then files are attached from source available on OS . The attached file name could be anything. Based on the Sequence number file should be attached and send. My current code works fine,but problem it is that the Sequence number is not preserved in my attachment . However, when I traced the output of FOR Loop by inserting it in a table " temp_trace" I found that the Sequence is preserved in the order that I want. So, I think that uploaded files are written on the Operating system in same order but they are not attached in same order. Below is the sample code that is I am using to attach file in email. Here, the user_sequence is the sequence number entered by user.Always post code using <tt>\...\</tt> tags as described in the FAQ.
    for i in (select case when  user_sequence is not null
    then trim(to_char(user_sequence ,'09'))||'_'||file_name||'.pdf'
    else  ||'_'||file_name||'.pdf' end file_name ,
    file_src,length(file_src) len,cd.doc_id,PRIORITY from
    MIM_CLIENT_DOCS CD,(select DOC_ID ,user_sequence from table P_DOC_AND_user_sequence ) TEMP_TAB
    WHERE CD.DOC_ID = TEMP_TAB.DOC_ID order by case when user_sequence is null then 1 else 0 end, file_name)                               
    loop
    insert into temp_trace values(i.file_name);
    L_OUT := UTL_FILE.FOPEN(v_oracle_dir,i.file_name,'wb',32760);
    end loop;I want my output as
    1_first attachment.txt
    2_second_attachment.docx
    3_abc.sql
    _xxx.txt  ------------------ When sequence is not assigned by user That is null at last.
    Unfortunately, I am not getting attachment in mail in this sequence. Can anyone give me suggestion.I see no code that attaches anything to email messages. What code is used to do this? Why are the files being written to the file system?

  • Sending mail with attachment and body.

    Hi Experts,
    I have a requirement of sending a mail with an attachment and also the mail will have a body whose content will be same as that in the attachment.Subject of the mail will also be configured dynamically.Though I am able to send the mail with the attachment but I am not able to configure the body whose content will be same as that of the attachment.
    I have unchecked the "Use Mail Package" and has hard-coded the "TO","From" field for sending the mail with attachment.
    Can you please check and let me know how to configure the body which will be same as that of the attachment.
    Thanks and Regards
    Atanu Mazumdar

    Hi,
    Use MTB module and then one of the parameter which can allow you to send message in attachment as well as in message body.
    Transform.ContentDisposition: it helps us to decide if we want to send the payload as an attachment or in the message body. If we give the Parameter value as u201Cattachmentu201D then we will have the payload attached in the mail and if we assign this value as u201Cinlineu201D the payload will go in the mail body.
    Hope this helps you..
    Regards....

  • Sending mail with attachment fails on MAC Mail and WRP400.

    Sending mail with attachment fails on MAC Mail and WRP400.
    We have hundreds of WRP400 connected with Mac (Machintosh) computers. No special configurations are applied (no virtual server or DMZ). Web navigation, P2P programs and sending mail without attachment work right.
    The problem is the impossibility to send mails with medium or big size files attachment from MAC Mail.
    If we use Windows PCs or a different linksys routers (eg. WRT54G) the problem not happens.
    We have upgraded WRP400 firmware version from 1.00.06 to 2.00.05 but the result is the same. Sending mail with attachment using Mac fails.
    We tried to configure WRP400 with DMZ to a particular MAC. We tried to configure Virtual server on tcp 25 port of a MAC. The result is always the same.
    This is a WRP400 bug? Windows PCs work right. MAC and MAC mail works right with other linksys router.
    We need help. Thanks.

    The problem was fixed since beta firmware 2.00.11.
    I think that this issue was caused from a bug that decrease upload bitrate of WRP400 after some days of activity.
    See more details on Cisco forum under title "WRP400 stops responding after browsing certain websites".
    Thanks.

  • Mail_Receiver: Send Mail with attachment

    Hi everybody,
    I need some help. I want to send a mail with attachment.
    for this I have imported SAPs xsd for the mail adapter.
    I wonder how to map the target fields?
    The following causes five! attachments in SXMB_MONI and the adapter throws
    java.lang.IllegalArgumentException: can't parse argument number
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
             <Subject>SubjctName</Subject>
             <From>mailadress</From>
             <To>mailadress</To>
             <Content_Type>text/plain; charset=&quot;ISO-8859-1&quot;</Content_Type>
             <Content_Description>
                <attachment filename="filename.txt">This should be the content of the attachment</attachment>
             </Content_Description>
             <Content>Constant</Content>
          </ns1:Mail>
       </ns0:Message1>
    </ns0:Messages>
    How do I have to foll the target fields?
    Thanks regards
    Mario

    Hi
    the following links may help you :
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
    Also reffer to the below mentioned thread;
    Regarding mail sent with an excel attachment
    Regard's
    Chetan Ahuja

  • How to send audio files as attachments?There is no attachment option in mail and no share option in MUSIC

    How to send audio files as attachments?There is no attachment option in mail and no share option in MUSIC

    i have some voice samples in Music file .how to share those files? or plz tel me where to store the voice samples

  • Disable attachment option in Mail

    For security reasons, I would like to disable the attachment option in the Mail app in iPhone to prevent any data leakages.
    Is there such in-built capability or option where I can enforce such policy?

    Thank you, Ralph.
    Yes, I tried all of that. The best I could find is Mail > Edit > Attachments > and check "Always Insert Attachments at End of Message." Its better than nothing!

  • What does {tag_image_value} from webapps return when field is empty? How to use javascript to remove div when condition is met.

    Dear all,
    As stated in the question, what does {tag_image_value} from webapps return when no image has been uploaded by users. I understand that there is an OnError function that can be called if there isn't any image. However it does not do so.
    I am creating a program which will check to see if {tag_image_value} contains an image. If it does not, the error will call an external javascript to remove the div such that it removes any subsequent codes in the later parts of the codes. Below is part of the program:
    I have tried to compare the value to NULL, 0, -1 and "" using if-else functions but they do not work. The slideshow wrapper is part of the code from the following theme: 2027 E Colfax Ave Denver
    The theme will cycle through the pictures, my purpose is to remove the pictures if the images are not present.
       <!------------------------------------------------ Remove picture if not uploaded ------------------------------------------------>
    <script language="JavaScript">
    function noimg1() {
         $( "#shownpicture1" ).remove();
         return;
    function noimg2() {
         $( "#shownpicture2" ).remove();
         return;
    function noimg3() {
         $( "#shownpicture3" ).remove();
         return;
    function noimg4() {
         $( "#shownpicture4" ).remove();
         return;
    </script>
            <!------------------------------------------------ End of remove picture if not uploaded ------------------------------------------------>
    <div class="slideshow-wrapper slider">
    <div class="preloader"></div>
    <ul data-orbit="data-orbit" data-options="bullets:false;animation:fade;">
        <div style="display: block;" id="shownpicture1">
        <li class="active" style="z-index: 4; margin-left: 0%; opacity: 1;"><img alt="{tag_name_nolink}" onerror="noimg1()" src="{tag_image 1_value}" /></li>
        </div>
        <div style="display: block;" id="shownpicture2">
        <li style="z-index: 2; margin-left: 100%; opacity: 1;" class="active"><img alt="{tag_name_nolink}" onerror="noimg2()" src="{tag_image 2_value}" /></li>
        </div>
        <div style="display: block;" id="shownpicture3">
        <li style="z-index: 2; margin-left: 0%; opacity: 1;" class="active"><img alt="{tag_name_nolink}" onerror="noimg3()" src="{tag_image 3_value}" /></li>
        </div>
        <div style="display: block;" id="shownpicture4">
        <li style="z-index: 2; margin-left: 0%; opacity: 1;" class="active"><img alt="{tag_name_nolink}" onerror="noimg4()" src="{tag_image 4_value}" /></li>
        </div>
    </ul>
    </div>
    <!-- //.slideshow-wrapper -->

    When I put in the code it doesnt work. I went into the page to check and it seems that the preloader changes some elements of the code :
    <div class="slideshow-wrapper slider">
        <div class="preloader"></div>
        <div class="orbit-container">
            <ul class="orbit-slides-container" data-orbit="data-orbit" data-options="bullets:false;animation:fade;" style="height: 26px;">
                <li class="active" style="z-index: 2; margin-left: 100%; opacity: 1;">
                    <img alt="{tag_name_nolink}" onerror="noimg1()" src="">
                    </img>
                </li>
                <li class="active" style="z-index: 2; margin-left: 100%; opacity: 1;">
                    <img alt="{tag_name_nolink}" onerror="noimg2()" src=""></img>
                </li>
                <li class="active" style="z-index: 4; margin-left: 0%; opacity: 1;">
                    <img alt="{tag_name_nolink}" onerror="noimg3()" src=""></img>
                </li>
                <li class="active" style="z-index: 2; margin-left: 100%; opacity: 1;"></li>
            </ul>
            <a class="orbit-prev">
                <span></span>
            </a>
            <a class="orbit-next">
                <span></span>
            </a>
            <div class="orbit-timer paused">
                <span></span>
                <div class="orbit-progress" style="width: 0%;"></div>
            </div>
            <div class="orbit-slide-number">
                <span></span>
                 of
                <span></span>
            </div>
        </div>
    </div>
    I tried putting this into the top of my template layout before the code starts:
    <script>
    $('.slideshow-wrapper slider .orbit-container ul li img').each(function(){
    if( $(this).attr('src') == "" ){
    $(this).parent.remove();
    $('.slideshow-wrapper slider ul li img').each(function(){ 
      if( $(this).attr('src') === '' ){ 
      $(this).parent.remove(); 
    $('.slideshow-wrapper slider ul li img').each(function(){ 
      if( $(this).attr('src') == '' ){ 
      $(this).parent.remove(); 
    </script>
    All 3 variants cannot work. Is there something wrong with the way I do the scripting?

Maybe you are looking for