does anyone know a way to remove/disable a custom ...
# suitescript
m
does anyone know a way to remove/disable a custom button in the UI once it’s clicked and fired it’s function?
b
nothing suitescript
m
yeah, that’s what I was afraid of. couldn’t find anything in the docs or SO
b
you can manipulate the visibility of the element by modifying the style of the dom element
m
can you add a class or id with suitescript?
b
same thing with the disabled property, though you still probably have to modify the style if you want to make it look pretty
messing with the dom is something that you use javascript for
m
thanks, I didn’t think of that. Appreciate the help
n
Depending on the context, if the record is in VIEW mode you you could reload the page and pick up a value on the before load to check preventing it from being added in the first place...