This is an example of a bit of code I have embedded into an HTML block in a Tabular Report Datapage:
<script>
function newFunction() {
if("[@field:FIELDNAME]" == "FIELDVALUE"){
window.open('http://www.site.com/page.html?parameter1=[@field:fieldname1]¶meter2=[@field:fieldname2]');
}
else {
alert ('no field value');
}
}
</script>
<input type="button" value="click me" onclick="newFunction()" />
When I view the source code of this script, after deploying the datapage, the parameter value appears in the 'if' statement, but the parameters are not appearing in the windo