title: How can I use JavaScript returned values in Genexus?
body: <p>Using Genexus, I am trying to set a Button's JSEvent property to do a simple value assignment:</p>
  
  <pre><code>Event Start
    DoAssignments.JSEvent("onclick", "document.getElementById('" + &amp;Field1.InternalName + "').value = 'Hello!'")
  endEvent
  </code></pre>
  
  <p>After this action (button_click), &amp;Field1 seems to have the correct value.
  But a simple Genexus assignemnt (&amp;Field2 = &amp;Field1) shows that, internally, for Genexus, this &amp;Field1 is still empty.</p>
  
  <p><img src="https://i.stack.imgur.com/K4jgg.png" alt="enter image description here"></p>
  
  <p>How can I retrieve a JavaScript Value/functionReturn and use it in Genexus?</p>