Welcome Guest, Not a member yet? Register   Sign In
set_value() only working if the field is part of validation - CI 2.0
#4

[eluser]Atharva[/eluser]
set_value() will not work for the fields which are not part of the validation rules. For dropdowns (or for any field), you can add the fields under validation rules like
Code:
$this->form_validation->set_rules('checkbox1', 'Checkbox1','trim|xss_clean');

So that it can be repopulated with set_select.


Messages In This Thread
set_value() only working if the field is part of validation - CI 2.0 - by El Forum - 01-06-2011, 04:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB