Solved
Perrin_EnnenAccepted solution
Community Advisor
August 1, 2024
Hi @aaronlng_92 ,
looks like a timing issue to me as well. This probably works in the preview in the VEC. But as @matthew_ravlich_acg writes I would use a script with a mutation observer to wait until the element exists and then set the styles with JavaScript accordingly. If all this doesn't help - you can still hide the button via CSS and show a new one that triggers the hidden one. That is not nice. But in exceptional cases it is unavoidable.