Child form attachments opening in new window

Home Forums Classic DFFS Child form attachments opening in new window

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #31444
      Paul Lynch
      Participant

        SCRATCH THIS – SEE CODE AT BOTTOM TO RESOLVE

        When a users opens a child editform, from a parent form’s vlookup, and there are attachments in that form. The attachment opens in that pop up box and they lose where they are in the form.

        Is there a way to force the attachment field of a child form (well any form really) to open in a new tab?

        If not as a fall back I can get users to right click and open in a new tab manually.

        I added this code and it worked..

        
        
        $(document).ready(function(){
                $("table#idAttachmentsTable a").attr('onclick', '').click(function (event) {
                    event.preventDefault();
                    var url=$(this).attr('href');
                    window.open(url, '_blank');
                });
            });
        • This topic was modified 4 years, 3 months ago by Paul Lynch.
      • #31447
        Keith Hudson
        Participant

          Paul, in case others are having a similar issue, in DFFS v 4.4.5.0, Alex made the following change:
          “Added a new setting in the Misc tab to force attachments to open in a new tab.”

          I love that you figured out the code to make this happen yourself, and shared it with the community. It will undoubtedly come in handy for those using an earlier version of DFFS than 4.4.5.0 and who wish to remain on their older version.

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.