views:

19

answers:

1

Hi,

I'm using extjs in codeigniter(php framework)

I want to store Value field of combobox in data base i gave displayField:'name', valueFiled:'id' for the combobox but when i used $this->input->post(combofield name); but its returning displayFiled;

How to get vlueField in post

+1  A: 

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.

Darren