Page 1 of 1

Related items - custom button

Posted: 17 Nov 2014
by hello_world
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.

Re: Related items - custom button

Posted: 18 Nov 2014
by Dmitry Kozlov
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>

Re: Related items - custom button

Posted: 18 Nov 2014
by hello_world
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.

Re: Related items - custom button

Posted: 18 Nov 2014
by Dmitry Kozlov
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.

Re: Related items - custom button

Posted: 18 Nov 2014
by hello_world
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