Related Items Task field
-
- Posts: 11
- Joined: Tue Jun 10, 2014
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
Am I missing something simple? Has anyone else had any luck with this?
Thanks
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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', '');
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', '');
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
You should assign a CSS class to the related items control you need to modify:
You should assign a CSS class to the related items control you need to modify:
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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.
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.
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
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
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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.
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests