-
4 Jan 2011 9:58 AM #1
Pass field how parameter from getForm().submit({
Pass field how parameter from getForm().submit({
Hi guys, I am trying to pass the field idProduto how parameter for my action, but it wasn't work.
I am able to pass every fields, but this I am not able.
I am doing equal the others, because I get the field's value from name.
This field doesn't appear from windows. So I put hidden his.
Could someone help me?HTML Code:[LEFT]var fieldIdProduto = new Ext.form.TextField( { id: 'campoIdProdutoCurrent', name : 'idProduto', disabled : true, allowBlank : true, hidden : true, anchor : '100%'[/LEFT] });
-
4 Jan 2011 10:22 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
disabled fields do not get submitted.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
4 Jan 2011 10:24 AM #3
Hi
Hi
Add this line in your code
,hiddenName:'idProduto'
-
4 Jan 2011 10:31 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
4 Jan 2011 10:35 AM #5
Hi guys, I took the disable of field and it was work.
Thanks friends =))
-
4 Jan 2011 10:36 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
if you just need a hidden field, just use xtype hidden instead of textfield.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
Similar Threads
-
formpanel.getform().submit() doesnot pass any data
By pegasus in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 11 Nov 2009, 3:13 PM -
How to pass parameter from php to js ??
By nuinisk in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 17 Apr 2009, 3:33 PM -
field datefield pass parameter for php 1982-12-25T00:00:00
By Rafael in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 24 Feb 2009, 2:00 PM -
Pass extra parameter on form submit
By Erik Helin in forum Ext 2.x: Help & DiscussionReplies: 14Last Post: 31 Aug 2008, 6:43 AM -
How can Pass More Than one parameter from combobox
By golla.sudheerkumar in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 11 Apr 2008, 6:40 AM


Reply With Quote