zend framework - Zend_Form : Adding fields in sub-forms on user's click -


i'm having zend form - comprised of number of zend - sub forms, user creating new question (its content management system). in 1 of subforms, user can click on button add more textfields, this:

[----------] [----------] [click add more]

which should give

[----------] [----------] [----------] [click add more]

i'm trying set flag in sub form in question - or set count on how many times button has been clicked, add many total fields subform - not working. tried using static count variable - value doesnt incremented @ all.

any thoughts on how in zend-subform within zend form? i'll update if hit solution. thanks!

i used sessions store click. tried doing javascript within subform not working. if have such situation there 1 form (no subforms), javascript solution works fine. effectively, increment counter 1 onclick. sessions, or other global variable, same - increment counter, , unset var when form submitted. - when u come form, previous session var value not retained.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -