开发者

ExtJS combo-box value field

I'm using ExtJS in CodeIgniter (a PHP framework)

I want to store the valueField of a combobox in a database. I set displayField:'name', valueField:'id' for the combobox, but when i used $this->input->post(combofield name); it is returning the displayField instead.

How am开发者_运维问答 I able to get the valueField?


You have to set the hiddeName property or else it will send the displayField value not the valueField. Make sure you name it differently than the displayField.


I have no knowledge of PHP; but i guess you want to post the data as of valueField but displayField is being posted instead. If yes, then i would request you to check the name property and id property as well with anyother form fields for it's uniquness.


Put this on your properties:

    displayField:'state',
    valueField: 'id', 
    hiddenName: "id",
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜