0 Replies Latest reply on Jun 29, 2012 3:24 PM by alexthebake

    Dialog Box: Radio Button with EditText

    alexthebake Level 1

      I'm trying to make a radio button group where upon selecting one of the radio buttons, the value would be an editable text box.

      This is what I have so far:

       

      function displayWindow() {

          var dlg = app.dialogs.add({name:"Page Format"});

          with (dlg) {

              with (dialogColumns.add()) {

                  with (borderPanels.add()) {

                      staticTexts.add({staticLabel:"Mode:"});

                      var modeRadios = radiobuttonGroups.add();

                      with (modeRadios) {

                          radiobuttonControls.add({staticLabel:"All Pages", checkedState:true});

                          radiobuttonControls.add({staticLabel:"Current Page Only"});

                      }

                  }

                  var myGrommets = enablingGroups.add({staticLabel:"Grommets:"});

                  with (myGrommets) {

                      with (borderPanels.add()) {

                          staticTexts.add({staticLabel:"Type:"});

                          var gromType = radiobuttonGroups.add();

                          with (gromType) {

                              radiobuttonControls.add({staticLabel:"Soft Material"});

                              radiobuttonControls.add({staticLabel:"Rigid Material"});

                          }

                      }

                      with (borderPanels.add()) {

                          staticTexts.add({staticLabel:"Cut Hole:"});


                          customCut = measurementEditboxes.add({editUnits:MeasurementUnits.inches});


                          var cutSize = radiobuttonGroups.add();

                          with (cutSize) {

                              radiobuttonControls.add({staticLabel:"0.385\""});

                              radiobuttonControls.add({staticLabel:"0.55\""});

                              radiobuttonControls.add(/* This is where I need an EditText field */);

                          }

                      }

                  }

              }

          }

          var myReturn = dlg.show();

          if (myReturn == true) {


          } else {

              dlg.destroy();

          }

      }

       

       

       

      How do I make a radio button that's value is an EditText?