Javascript in custom HTML field not running?
Confluence User - 14 Nov, 2015
I tried putting this in my custom HTML field:
<script language='text/javascript'>
$(document).ready( function() {
alert('testing!');
console.log("is this even happening?");
} );
function formbuilderOnReady(){
// initialize the form field value here
alert('testing 2!');
console.log("is this even happening? 2");
}
</script>
But nothing is getting printed out to my JS console and the alerts aren't even coming up either. I took both of these examples from online - I just want the JS to run on form load but it doesn't look like it is? Any ideas? Am I forgetting something very important?
forms;userviews