-
Sencha User
Combobox to JSON
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?
-
Sencha User
Yes, it is child of the form.
-
Sencha User
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.
-
-
Sencha User
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules