JanineB Posted November 12, 2018 Report Share Posted November 12, 2018 How can I add a new button in Details Page of Gallery Report? Quote Link to comment Share on other sites More sharing options...
1 DefinitelyNot31337 Posted November 12, 2018 Report Share Posted November 12, 2018 If I understand correctly, you wanted to be able to append a button beside the "Back" button of a Details Drilldown. To do so, just paste the code below in the footer of your DataPage. Do make sure the HTML Editor in the Advanced tab is unchecked before pasting the code. <script> var linkUrl = 'https://www.google.com' var title = `Go ask Google, kiddie`; //Your HTML goes here. Edits are not necessary but you may do so if you know what you're doing var myButton = ` <a href="${linkUrl}" class="cbBackButton"> ${title} </a> `; document.querySelector('.cbBackButtonContainer').insertAdjacentHTML('beforeend', myButton); </script> Hope this helps. Regards, DN31337 Quote Link to comment Share on other sites More sharing options...
0 hsilver Posted December 5, 2018 Report Share Posted December 5, 2018 The code you supplied works perfectly in Preview. It doesn't do anything when I access the web page. Quote Link to comment Share on other sites More sharing options...
0 ChrisCarlson Posted December 12, 2018 Report Share Posted December 12, 2018 Hello, This code works. Is there a way to remove the underline from the button text? I tried creating a user defined style but it did not work. Quote Link to comment Share on other sites More sharing options...
0 TsiBiRu Posted December 13, 2018 Report Share Posted December 13, 2018 Hi @Carlson, You can paste the code below on the header, just make sure that you have unchecked the 'Enable HTML editor' in the 'Advance' tab http://prntscr.com/luozh4 . After that go back to the 'Standard' tab and paste the code below <style> .cbBackButton { color: #FFFFFF !important; text-decoration: none !important; } </style> That should remove the underline, hope this helps Regards, TsiBiRu Quote Link to comment Share on other sites More sharing options...
0 ChrisCarlson Posted December 17, 2018 Report Share Posted December 17, 2018 TsiBiRu, Thanks, that works well! Quote Link to comment Share on other sites More sharing options...
Question
JanineB
How can I add a new button in Details Page of Gallery Report?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.