- Code: Select all
[[ if $page.extrafields.use_fake_download=="on"]]
<script language="javascript" type="text/javascript" >
function show_alert() {
var msg = "[[$page.extrafields.fake_download_alert_message|replace:'<p>':''|replace:'</p>':''|replace:'<br />':'\n']]";
alert(msg);
}
</script>
[[/if]]
So we have to use the wysiwyg editor to make this work correctly but above is the working code!

Thanks you so much guys, I was really about to give up.