title: Jenkins - Active choice reactive reference parameter
body: <p>Greetings!
  I am novice to Jenkins and Groovy. I have a below usecase where I am not able to print the user input values and pass the same to shell script. Could somebody share me your inputs on how to get the input values stored in a variable and print the same in the execute shell.</p>
  
  <p>Appreciate your help on this!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Here is the script
  ============================================================================
  Active Choices Parameter:
        Name   DB_DUMP_TYPE
        Script    (.) Groovy Script
                       
                       Script
                            Groovy Script     return[
                                                         'EXPDB'
                                                         'IMPDB'                                                     
  
                                    Fallback Script
                                         Groovy Script    return["error"]
                             
                       Choice Type [Single Select]
  
  
  Active Choices Reactive Reference Parameter
                 Name   (leave blank, dont give any thing here)
              Script (.) Groovy script 
  
  if(DB_DUMP_TYPE.equals("IMPDB")){
  def FullHTML = """
  &lt;label style="left: 22% position: absolute;"&gt;DB_DUMP_TYPE&lt;/label&gt;
  &lt;input name='DB_DUMP_TYPE' type='text'&gt; &lt;/input&gt; &lt;br&gt;
  &lt;label style="left: 22% position: absolute;"&gt;DB_DUMP&lt;/label&gt;
  &lt;input name='DB_DUMP' type='text'&gt; &lt;/input&gt; 
  """
  return FullHTML    }
  
  if(DB_DUMP_TYPE.equals("EXPDB")){
  def FullHTML = """
  &lt;label style="left: 22% position: absolute;"&gt;DB_WALLET&lt;/label&gt;
  &lt;input name='DB_WALLET' type='text'&gt; &lt;/input&gt; &lt;br&gt;
  &lt;label style="left: 22% position: absolute;"&gt;DW_SCHEMA&lt;/label&gt;
  &lt;input name='DW_SCHEMA' type='text'&gt; &lt;/input&gt; 
  """
  return FullHTML    }
  
  Fallback Script
     Groovy Script return["script error"]
  
  
  Referenced Parameters DB_DUMP_TYPE</code></pre>
  </div>
  </div>
  </p>