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?

5 Comments
Tiensoon
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.
Jonathan Hauffe
Thanks for your Answer.
ario sadewo
can u show me an example, pls...
ario sadewo
can u show me an example, pls...
Tiensoon
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.