Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

I wrote the following JavaScript inside a Custom HTML field at a Joget form:-

Code Block
langjavascript
<script type ="text/javascript">
$(document).ready(function () {
    var paId = #variable.imagurl#;

    var fullurl = 'http://localhost:8080/jw/web/json/workflow/process/list?j_username=kermit&hash=9449B5ABCFA9AFDA36B801351ED3DF66&loginAs=customerservice&packageId=' + paId;
    $.ajax({
        type: "GET",
        url: fullurl,
        dataType: "JSONP",

       // code goes here
</script>

So i need to access the value of the workflow variable using the following:-

Code Block
langjavascript
 var paId = #variable.imagurl#;

But it seems that I am unable to do so. so my question is how i can access the hash variables from a javaScript written in Custom HTML field at the joget forms?
Best Regards