Zend_Form - Simon Mundy & Ralf Eggert - Zend Framework Wiki:: You can add pages to this list by clicking on the top right of the page you're But how do you propose I would - for example - create a dynamic form http://framework.zend.com/wiki/pages/viewpage.action?pageId=3596HOME | I can already staticly add fieldsets and textfields to a form but now I want to dynamicly add a fieldset and then dynamiclly add fields to it. Heres my code inside my forms show event...
this.items.add(new Ext.form.FieldSet({ Passing parameters from one form to another > DotNetNuke Module :: 6 posts - Last post: Dec 13, 2007In the first case, the user fills out dynamic form 1 and is redirected I tried using both hidden fields and a text field set to hide for http://www.datasprings.com/Products/ProductForums/tabid/727/forumid/5/view/topic/postid/2554/ptarget/2766/language/en-US/Default.aspxHOME |
title: 'Phone Numbers'
}));
debug(this.items.get(1));
this.items.get(1).add(new Ext.form.TextField({
fieldLabel: 'Zippy', name: 'Zippy', value: 'testing' Windows classic skin for Flex 3 | Mind the Flex:: Mar 19, 2008 Ok, I was trying the Fieldset as you have described, and found out that for some reason the height of the TextField was too high, http://www.mindtheflex.com/?p=3HOME | Using Javascript to validate email address on shopping cart :: Nov 10, 2008 Trying your latest solution, but only one email field shows when the page loads OK, so you want to add that field dynamically as well? http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q-23891229-Using-Javascript-to-validate-email-address-on-shopping-cart-checkout-form.htmlHOME |
}));
this.doLayout();
this.render();
It adds the fieldset just fine but theres nothing it it. I don't see my Zippy field
I assume that the code you posted is from an Ext.form.FormPanel subclass. Is that correct?
If you are dynamically adding fields to a FormPanel which has already been rendered you don't have to call render. Also instead of calling doLayout on the FormPanel itself you can call it directly on the fieldset.
So the pseudo code... (NOT meant to run)
var fs = new FieldSet();
fs.add(new TextField());
fs.doLayout();
You also may want to take a look at adding an autoHeight: true option for FieldSet depending on what type of layout management you are using with the parent container.
the autoHeight thing worked perfectly...
p.s. I am using the FormPanel subclass
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market
|