Hi All! I am trying to hide the 'Set as Baseline B...
# general
v
Hi All! I am trying to hide the 'Set as Baseline Budget' button on a Work Breakdown Structure. Since this does not seem to be possible through regular (api) functionality I created a usereventscript to inject code into a custom inline HTML field (in other words: hack). I attached a snippet of the code I use to this message. Both the jquery and regular javascript code (currently commented out) work perfectly when I executed them via the console but does not seem to be executed when my script fires. Can anyone help me with this? Many thanks in advance!
b
my recommendation would be to use client script to do your code
less messing around with eval strings
v
Hi @battk, I tried a client script as well but this doesn't seem to work either...
b
What was the code of the client script
v
Hi @battk, see code below 🙂
b
ids say try a debugger; statement to make sure your code is running and doing what you want it to do
probably make it prettier with multiple lines for ease of debugging