Hi,
My form has three input fields which are text,text,combobox. When I try
var dd = Ext.encode(form.getValue());
It only gets and encodes the text inputs to the JSON, it does not include value of combobox, how can l deal with it?
Thanks..
Printable View
Hi,
My form has three input fields which are text,text,combobox. When I try
var dd = Ext.encode(form.getValue());
It only gets and encodes the text inputs to the JSON, it does not include value of combobox, how can l deal with it?
Thanks..
Do you mean form.getValues()? Is your combobox a child of the form?
Can you post some code?
Yes, it is child of the form.
Is not there any way? I want all form's childs(inputs) to be added to JSON object but it is not able to include combobox, how can I solve this problem?
It should. But unless you post some code, it's difficult to trouble-shoot why you're not getting the behavior you expect.
Should be as simple as this example: http://jsfiddle.net/existdissolve/3xLqr/
Excellent dude, both the website and your answer, thank you very much.
Note: Actually my problem is not about the retrieving the combobox value. It was about the label of value that it retrieves it like that
{"combobox-1018-inputEl":"Reviewer"}} , now I speficy the label and it works.