Related items - custom button

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
hello_world
Posts: 9
Joined: Fri Nov 07, 2014

17 Nov 2014

HI,

I updated list view using JSLink and I was able to append custom button to every item in list, basically I override PrePost function for list. But the problem is when I use that same list like a related item. In that case I don't have added button. Is there any other way to do this. I need to have this button to add my custom action on it.


Thanks.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

18 Nov 2014

Hi,

Please, make sure that the Render property of the related items control is set in Client. Next, expand View property and add the reference to your script in JSLink element:

<JSLink>clienttemplates.js|~site/style library/custom.js</JSLink>

hello_world
Posts: 9
Joined: Fri Nov 07, 2014

18 Nov 2014

Hi, Render option is set to Client, and in section 'Extended' I opened View and append my path with | delimiter, but still there is no my custom button in list. When I open list directly (not like a related item) everything is fine. It's really strange.

Thanks.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

18 Nov 2014

Please, make sure that the URL is correct and your script is loaded. If it still doesn't work, please, send your script to support@spform.com and we will research the issue.

hello_world
Posts: 9
Joined: Fri Nov 07, 2014

18 Nov 2014

The URL is fine, I check the network log, there is no request to load this file at all, I'm not sure do I need to configure something more to enable this. I'll send Email to support.


Thanks

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests