title: assign javascript variable to a velocity template variable
body: <p>In my velocity template, I have a javascript variable like</p>
  
  <pre><code>var workflowInstanceNameText = document.getElementById('workflowInstanceName').value;
  </code></pre>
  
  <p>and I want to assign the javascript variable to velocity template variable.</p>
  
  <pre><code>#set(workflowName = 'someexpression here');
  </code></pre>
  
  <p>In the palce of some expression I have tried as below but its not assigning value </p>
  
  <pre><code> #set(workflowName = workflowInstanceNameText);
   #set(workflowName = $workflowInstanceNameText);
  </code></pre>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks in advance.</p>