Reputation: 59
I am having a view which displays a form that shows some question and answers to the user. The user fills out the answers and submits the form. My requirement is to send a hidden value to the server when a user submits the form along with the form data.
Upvotes: 0
Views: 1082
Reputation: 161
ExtJS has a hidden field that you can add to your form Ext.form.field.Hidden
{
xtype: 'form',
items: [{
...
{
xtype: 'hiddenfield',
name: 'fieldName',
value: 'value'
},
...
}]
}
Upvotes: 3