Hi, Is it possible to alter the button visibility using JS on an embedded form?
Details:
I want to hide the button with class “.iuXZAz” when page loads, and show only when textarea with id=“bb7d1b63-dc32-41a0-9072-709f0d4179bc” is filled by the user. JS suggested by chatgpt is not working. I also tried altering the code to basic code I have used for softr elements. For example the code to hide the button I am using is:
window.addEventListener(‘DOMContentLoaded’, () => {
const button = document.querySelector(“.iuXZAz”);
button.style.display = “none”;
});