Redash 1.0.1+b2833

I can’t use javascript in Text Box.

Here is the javascript code.

<script>
function hoge() {
alert("abc");
}
</script>

<button onclick="hoge();">xxx</button>

I got error (Uncaught ReferenceError: hoge is not defined) when push this [XXX]button.

Is my Text Box written code wrong?

1 Like
<p ng-bind-html="$ctrl.widget.text | markdown" class="p-5"></p>

Because of “markdown” filter javascript does not work.
I remove “makrdown” where I got javascript worked.