I implemented the zend subform tutorial from here and the problem im having is on occassion it will display the second subform before the first. any ideas why this is happening?
From a brief look at the tutorial I would guess the session has not been cleared and still contains form data.
Related
I would like to create a sub-form in which there are links to another table inside the fields of a column. This is pretty much as it is in the Northwind Database sample of Access, in where in the 'Home' form there are two tables and, in the product table, there are links to the product details.
My question is how to create those links first, and how can I make my forms to 'pop-up' in smaller windows as there is in this example?
I will appreciate a lot the help, thank you very much in advance.
Jim.
Edit with images:
The main page of the Northwind database looks like this. My concern is about the links on 'Products', that their show information of the selected product. When you click on the desired product, it opens a form with the information about the product but in a new window, like this:
Here there is the form when you click on the name. I'm looking into the tables and subforms of the database but I can't find clues about how was this done. Meanwhile I'm reading various tutorials of Access but for the moment there's no success on that. Hope it's clear what I'm trying to show. Anyone has any clue about how can this be done? Thank you very much.
Edit 2: I've solved the pop-up window for the forms, so I can manage to do this. Now I'm struggling on finding how to link those fields of a table with other forms. The hyperlink doesn't seem to allow me to do it. Any clues? Thank you
Im writing a program in zend using zend forms. Everything is fine the form process well to the database but the problem is that the form is too long +-50 inputs which all belong to one database table. How can I find a way to shorten/break some parts of the form to fill in first and then use a next link to fill the rest, bit by bit, and then a finish link to process the form to the database. Basically break the form in parts so that the user wont give up easily or become lazy while filling in his/her details. Can I use multipage form if so, how can I go about it?
Thanks in advance
Use Sub forms for each step (page). See this example - http://framework.zend.com/manual/1.12/en/zend.form.advanced.html#zend.form.advanced.multiPage
As each step will probably contain its own validation, I suppose that the best approach would be to write a separate form for each step in the wizard. After successful validation of one form, store the results in the session and proceed to the next step.
I have 2 multi-select Html.DropDownList controls with a button between them. When the user selects items from the first and presses the button they are copied to the second Html.DropDownList control via JQuery.
My problem is when the form is posted back I do not know how to obtain all the values in the second Html.DropDownList control.
This would be really easy with web forms but I have no idea how to do it with MVC2
thanks
--- Also I will need to validate the second Html.DropDownList to ensure it contains at least one item.
Okay, I can get it to work by selecting all the items in the list with JavaScript right before the post back. This feels like such a hack to me though. Surely there is a better way to do it then this. Does anyone know of a way that does not rely on JavaScript?
If relying on JavaScript is the standard way to do this sort of thing then can someone explain why this is okay... Or is this an example of the immaturity of the MVC model?
Thanks.
I created some phone number fields in a Wicket form. Without tab-auto, they work fine. When tab-auto is added to the HTML, it takes a few seconds for new values being entered to be displayed.
The best way to get this kind of things solved is to create a "QuickStart" that demonstrates your issue and post it on Wicket's issue management system.
hey, i'm stuck at a problem which is kind of similar to one that Erik asked about. I'm trying to create a dynamic form in zend and what i wanna do is that there should be a button which when clicked adds a new text box or any form element dynamically.
now the problem is that i'm new to zend framework. i'm using 1.9.7 right now. i've done some functionality like user registration and login etc but dojo and zend subform are completely alien to me. so i need your help. please guide me that where should i start and what would be the logic of this dynamic form.
regards,
furqan
These new elements should be instances of new Zend_Form_Subform to have server side validation working properly.
New subforms may be added via AJAX (see ajaxLink view helper) or to be already present on the page, but hidden with CSS+JavaScript.
I don't know a lot about zend, but if you want to do that on the client side, you can use dojo.place as described here.