Hayat5 / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Dynamic Fields in the form #195

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I want to create a dynamic fields form.
$options = array("Amount", "Reset Password");
$form->addElement(new Element\Radio("Command Type to Employee : ", "type", 
$options, array("value"=>"Loan Approval")));

$form->addElement(new Element\TextBox("Amount :", "amount"));
$form->addElement(new Element\TextBox("New Password:", "password"));

when I select the "Amount" the "amount" field should show and
when I select the "Reset password" the "password" field should show.

What version of the product are you using? On what operating system?
PFBC 3.1

Can anyone kindly help me regarding with it.
Thanks in advance.

Original issue reported on code.google.com by birso...@gmail.com on 15 Feb 2013 at 6:14