brainy-london-213
08/13/2022, 6:15 AMelegant-eve-85294
if (window.location.href.indexOf("Page name from the URL") > -1) {
var searchBar = document.getElementsByClassName('stk-list-search');
searchBar[0].insertAdjacentHTML('beforebegin','<a type="button" class="stk-button stk-button-App e1gdhyg50 css-1qqnsc1" id="form-button"href="form URL">Test button</a>');
}
You would need to replace
• “Page name from the URL” with the last bit of the URL that contains the page name, after the last / character. This makes sure the button shows up only on that page.
• “form URL” with the actual form URL
• “Test button” with the name of the button
You can then use the newly created ID to access CSS only for that button.elegant-eve-85294