How do I go about adding inputs (buttons, checkboxes, etc) to the form
select/unselect, move items up/down, move items from one list to
another, etc? I guess the forms class already has the ability to
handle such functionality at the frontend.
If these are going to be plugins, could you give some hints on
on 12/01/2006 10:38 PM Shekar C. Reddy said the following:
> How do I go about adding inputs (buttons, checkboxes, etc) to the form
> select/unselect, move items up/down, move items from one list to
> another, etc? I guess the forms class already has the ability to
> handle such functionality at the frontend.
> If these are going to be plugins, could you give some hints on
> creating them?
longer under the control of the form class because all happens at the
What you can do is to develop a custom input that outputs some
should also also output a private hidden on which you can store the
number of inputs that you add dynamically. When you add or remove your
implementing the AddInputPart function.
Then on the server side, your custom plug-in should implement the
LoadInputValues to read the value of the hidden input and call
AddInputPart to add as many dynamic inputs as you created. Then you can
call LoadInputValues again to load the values of those inputs.
This may not seem obvious right now, but once you start implementing the
custom input class to do what you want, just let me know if you have
Metastorage - Data object relational mapping layer generator
PHP Classes - Free ready to use OOP components written in PHP