This message was deleted.
# questions
b
This message was deleted.
g
I don't have Enterprise but we do have some custom JS running thanks to Stacker support. I haven't tried making custom styled buttons, but anything is theoretically possible, as long as you could do it with JavaScript. Some examples of things we do are 1. Integration with UserGuiding to add training overlays and buttons 2. Integration with FullStory for web analytics 3. Adding web links to different images and containers I have not tried but have seen examples of: 1. Integration with chat apps (Intercom, etc.) 2. Custom table row highlighting or formatting 3. Hiding specific elements on a page Something that you want to understand well is the difference between global scripts and page scripts, or "run once" and "run per change". The difference between them is not always super obvious, but here are some examples I got from @white-scooter-70446 :
Scripts to be run once include Google Analytics and Google Tag Manager. Scripts to be run per page include FreshChat, Front App, Pendo and Weglot.
Here is the link to the official documentation, although that page does not include much about the script type.
🙏 1
a
I use a lot of JS to customized Stacker. Thinks like custom dropdown menus, load and unloading user data into localStorage, lots of UI tweaks etc. I even used it to build an Oauth workflow within stacker which I shared under #showcase-tips-tricks recently
🙏 1
q
I appreciate your fast response guys. Thanks a lot. Does anyone know where I can view the record fields to then incorporate them individually into JavaScript? When I'm in the CSS sheet, it only shows me a very bad cut-off box whenever it tries to auto-fill the words. ( example: .stk-table-header-cell..... ) If anyone else has any tips or comments regarding Stacker in connection with JavaScript, I would be very grateful.
a
@quick-analyst-89942 what do you mean?
g
@quick-analyst-89942 my workflow for targeting CSS changes is to use Chrome's "inspect" tool instead of viewing the CSS directly. I have never personally seen the styles cut off as you are suggesting, but if you run into that you should be able to fix it by resizing the style pane or using copy-paste. As far as writing JS to modify HTML, I don't have a ton of experience. But I have found ChatGPT to be very helpful in figuring out how to do it 😁. It gets a bit tricky when Stacker makes changes in the backend (class names, etc.), as that can quickly break things. I haven't run into that very much but it has happened once or twice. It's best if you put class names that you target into variables so you can quickly/easily change that. And debug log is your friend here - make sure to make your error messages very clear to understand so you can figure out what's breaking.