Hello,
i want to design a Form, where you can configure a virtual Server and it's modules.

Therefore my Question:

I got f.e. a Radio Button for the Module FTP: If you want FTP Access to the Server you klick on Yes. 
onchange i want to "pop" up a window or Field where you can select the number of ftp users you need. 
how can id handle that?

  • No labels

5 Comments

  1. Hi Jonathan,

    You can insert a Custom HTML element into the form, which allows you to write HTML, JavaScript (includes jQuery) and CSS. So, in the Custom HTML, you can probably write a DIV that contains a textfield to capture input for number of FTP users, and this DIV is display:none by default.

    Then, using jQuery, you can bind an event to the radio button, which calls a JavaScript function to show the DIV mentioned above.

  2. Thanks for your Answer.

  3. can u show me an example, pls...

  4. can u show me an example, pls...

    1. In the following example, we bind the onClick event to a checkbox option identified by "_ex_checkbox_checkbox_4_1" as its ID.

      <script type="text/javascript">
      function formbuilderOnReady() {
        $("input[id='_ex_checkbox_checkbox_4_1']").click(function(event){
          // the script to be executed everything this checkbox is clicked
          if($('input[name=checkbox]:checked').val() == "Show")
            alert("The checkbox is checked");
        });
      }
      </script>

      And this screenshot shows how we easily trace the source to find out ID of a form element, using Firefox's Firebug extension.