Hello Community,
I am trying to create a simple calculation macro in the Confluence. I have never done it before, this is my first. I found the syntax and everything. Here is what I tried:
## @Param nr1:title=number1|type=int|required=true|
## @Param nr2:title=number2|type=int|required=true|
<script type="text/javascript">
AJS.toInit(function(){
var x = $paramnr1;
var y = $paramnr2;
var result = x * y;
$(result);
});
</script>
Parameters are ok, but the problem is that I am not getting any result. What am I missing here?
Thank you
Jakub
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.