Related Items Task field

rss

Posted by bnunweiler - Jul 15 ’14 at 09:41

I've been trying to set the Related Items field attribute "target" in SharePoint Tasks to, "_blank", so that the item opens in a new tab. I can set it in the IE DOM explorer, but I can seem to set it using fd.field or the JQuery $('.relateditemname').attr("target","_blank"); at design time.

Am I missing something simple? Has anyone else had any luck with this?

Thanks

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 8 months
    #1 by Dmitry Kozlov Jul 17 ’14 at 02:39

    Hello,

    Please, assign 'related-items' to CSS class of your related items control and put the following code into JS-editor:

    $('.related-items .ms-vb-title a').attr('target', '_blank').attr('onclick', '');

  • hp
    Member
    Member for: 7 years 6 months 11 days
    #2 by hp Nov 10 ’14 at 04:16

    [#1]: Hi! I am trying to do same. I have added the script but it doesnt change. Could you please elaborate it little more. I think i am missing which css class to assign the field and where. Thanks in advance!

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 8 months
    #3 by Dmitry Kozlov Nov 11 ’14 at 05:13

    [#2]: Hi,

    You should assign a CSS class to the related items control you need to modify:

    SharePoint Related Items

  • hp
    Member
    Member for: 7 years 6 months 11 days
    #4 by hp Nov 11 ’14 at 12:26

    [#3]: Hi Thanks for quick replay. I have added the css class but it's not taking effect. may be class that is being modified is different than ms-link?

  • hp
    Member
    Member for: 7 years 6 months 11 days
    #5 by hp Nov 11 ’14 at 12:46

    if this helps. i am trying to modify related items within task

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 8 months
    #6 by Dmitry Kozlov Nov 12 ’14 at 04:14

    [#5]: Hi,

    I cannot find mentions of 'ms-link' class in this thread, Please, make sure that you're trying to do the same thing as the topic starter did: to open items from the related items control in a separate window. Make sure that the Render property of the related items is set in Server.

  • hp
    Member
    Member for: 7 years 6 months 11 days
    #7 by hp Nov 19 ’14 at 12:18

    Hi,

    yes i am talking about same issue. i tried to attach screenshot but it didnt get attached that's why its confuising what i wrote in post. But i understand solution you suggested it doesnt work. one more thing that i noticed was when i open the form in forms designer, click on 'Related item' under Field it's showing ID, internal name but type is showing as 'unknown'. thanks

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 8 months
    #8 by Dmitry Kozlov Nov 20 ’14 at 04:05

    [#7]: Hi,

    I'd suggest to upload screenshots to OneDrive or Dropbox, share them publicly, and put the links here. As for the Unknown type, Forms Designer outputs TypeAsString property of SharePoint field. It seems that 'Unknown' is the value of TypeAsString property of the Related Item field.

  • hp
    Member
    Member for: 7 years 6 months 11 days
    #9 by hp Dec 2 ’14 at 03:15

    http://forum.spform.com/forms-designer-for-sharepoint-20/related-items-task-field-25199/

  • hp
    Member
    Member for: 7 years 6 months 11 days
    #10 by hp Dec 2 ’14 at 03:16

    https://app.box.com/s/gme0t1l9p9pmwyb0yjnf

     

    please check the screenshots out.

    thanks!

Displaying 1 to 10 of 20 messages
Previous12