Hello,
I’m trying to use plain JavaScript in a Forge UI modification. For example:
console.log(document.getElementById("assignee-field"));
However, it returns null.
Any idea why this might be happening?
Thanks,
Ibrahim
Hello,
I’m trying to use plain JavaScript in a Forge UI modification. For example:
console.log(document.getElementById("assignee-field"));
However, it returns null.
Any idea why this might be happening?
Thanks,
Ibrahim
Maybe your script is running before the DOM is fully loaded, you can try adding a setTimeout.
Hello,
Thanks for your reply.
I’ve added a 5-second delay, but it’s still not working.
Just to clarify: I’m applying this logic when the assignee changes, and the DOM is already loaded at that point.
Regards,
Ibrahim
I think DOM manupulation won’t work in Forge.