Dynamic forms in zend?

Hey, I'm stuck in a problem that is similar to the problem Eric asked about. I am trying to create a dynamic form in zend, and what I want to do is that there should be a button that, when clicked, adds a new text field or any form element dynamically.

Now the problem is that I'm new to the zend framework. I am using 1.9.7 right now. I made some functions, such as user registration and login, etc., but dojo and the zend subformation are completely alien to me. so i need your help. tell me where I should start and what will be the logic of this dynamic form.

Regards, FURQAN

+3
source share
2 answers

These new items must be instances of the new Zend_Form_Subformfor proper server-side validation.

New subforms can be added via AJAX (see ajaxLinkview helper) or already be present on the page, but hidden with CSS + JavaScript.

+1
source

I don't know much about zend, but if you want to do this on the client side, you can use dojo.place as described.

0
source

Source: https://habr.com/ru/post/1732470/


All Articles