I’m trying to run javascript to change the background color of a div element based on the contents of that element. This works when I execute the code in the browser console, but how do I get this to execute automatically in the app’s code? I’ve tried custom code block workflow which doesn’t like my code (assuming the functions it allows are very restricted). I’ve also tried the tags script for the app, but I’m unsure if that is supposed to execute Javascript or not. I can’t get it to work either way.
Any help is appreciated. Thanks!