Apr 15 2018 07:49 AM
Hey all,
I've started to try and understand Scriptlink Custom Actions and as a bit of a test, I want to hide some elements on the addanapp.aspx page.
Individually, I have managed to test each line of the elements in a Browser Developer Tools session and they hide as expected when executed individually. However, none of them are firing when I reference the following code from my Custom Action JS file.
Am I missing something obvious?
Jun 04 2021 10:53 AM
little late to it, but you'll want to wait until the page loads before your script executes.
see what sort of JS promise chain you need to jump into as the elements are not yet rendered when your script executes. a simple script delay works but a promise chain would be ideal to ensure you target what you want to hide AFTER it gets rendered.