Welcome Guest, Not a member yet? Register   Sign In
set_radio() pre-populate problems
#3

[eluser]Unknown[/eluser]
Hmm, no dice. It works for validation to pre-populate but it doesn't load the db value on the first load.

edit: i ended up using a solution like this from here:

Code:
<?php $options = array(
                  ''       => 'Select',
                  'Yes'  => 'Yes'
                );
        
    echo form_dropdown('volunteer_applied_c', $options, set_value('volunteer_applied_c', $application_data['volunteer_applied_c']));
    
     ?>

If validation rules are set for the field then it will update the value from the submission after being pre-populated by the database value, $application_data['volunteer_applied_c']


Messages In This Thread
set_radio() pre-populate problems - by El Forum - 07-20-2011, 05:44 PM
set_radio() pre-populate problems - by El Forum - 07-20-2011, 07:56 PM
set_radio() pre-populate problems - by El Forum - 07-21-2011, 10:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB