title: Google Apps Script Example - How to change value of listbox dependent value of radio button
body: <p>I have a question about Google Apps Script. I want to create a basic form where the form contain a textbox, radio button, listbox and fileupload. My issues here, I want to change value of listbox dependent on selection of radio button. </p>
  
  <p>For example : </p>
  
  <pre><code>//variable radio button
  var valRadio1 = app.createRadioButton("radio", "One").setName("One").setId("One");
  var valRadio2 = app.createRadioButton("radio", "Two").setName("Two").setId("Two");
  
  //arrays of listbox
  var item1 = ["item1","item2"];
  var item2 = ["item3","item4"];
  
  //variable listbox
  var listBox = app.createListBox().setId("box").setName("box");
  </code></pre>
  
  <p>If I select valRadio1, then listBox will load value of item1 and if I select valRadio2, then listBox will load value of item2. So can you explain to me the solution of my issue and can you give me a little example to solve my issue? Thank you very much if you all can help me :D.</p>
  
  <p>Note : I'm still using UI Service, so please explain to me with that way :D.</p>