|
|||
|
I've been googling for an answer but I don't know how to phrase the question to my problem so I'm hoping this is the right place to ask.
I want to create a Zend_Form_SubForm that can contain a variable number of records. When the user clicks the "Add" button, I want to add a record. When the user submits the data I want the Zend_Form_SubForm to validate the data. Initially the form will contain no records but after adding records, a subsequent request for the page will return rows. How do I add HTML content to a Zend_Form_SubForm? (I want to create a button using an "a" tag and CSS - I have it working on a "sidebar.phtml".) I'll use Javascript to add/remove records, but how do I name the fields so that the data can be validated? When I add a select field it looks like this: HTML Code:
<select name="form1[tslist][tscode]" id="form1-tslist-tscode">
Thanks in advance, Jamie |
![]() |
| Thread Tools | |
| Display Modes | |
|
|