Inside a web block with input parameter y, trying to pass 'y' to the javascript of the same web block. How?
Hi,
You just need to have something like this
SyntaxEditor Code Snippet
"<script> $( document ).ready(function() { alert('Hello " + Input + " World!') }); </script>"
This if you are using expressions. On RunJavascript Action is the same thing. If you have the JS in the webblock advance property you need to use the expression or the action to call the action there.
Regards,
Marcelo
QIUYAN LI wrote:
Hi QIUYAN LI.,
You can also use the bellow function in extended properties
"showbutton('"+Input4.Id+"')"
You can describe the function in javascript editior of the screen
function showbutton(id1){ document.getElementById(id2).style.visiblity="none"; }