This can be done with a sheet worker. Let's say the box has an attribute name of "box" for simplicity, and the attribute whose value youre checking is called "toggle" Check if your sheet's html has a section that starts <script type="text/worker"> If it doesnt, create this at the very bottom of your sheet <script type="text/worker">
</script> Then copy the following sheet worker and put it between the <script and </script> lines: on("change:toggle", function() { getAttrs(["toggle"], function(values) { let checking = values.toggle; let text = (checking === "1") ? "STR - Primary" : "STR - non Primary"; setAttrs({ box: text }); }); }); That should do it. Just change the word each instance of the world toggle to the name of the attribute you check, and the box to the name of the attribute where the text goes.