⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Pass value from one field to callback function of another field



archerwisdom
  • profile picture
  • Member

Posted 17 November 2013 - 11:29 AM

Hi,

 

If I have this:

$crud->callback_field('function_time_selector',array($this,'functime_callback'));

$crud->fields('function_address','contact_person','contact_no_1','contact_no_2','contact_no_3','fax',
                          'email','function_date', 'function_time','function_time_selector', 'function_purpose');


function functime_callback($value = '', $primary_key = null)
    {/*  some code to display the dropdown list */
     .....
     }

Question is: Can I pass the value of function_time to the  functime_callback ? I need the value from function_time to reproduce two dropdown list for function_time_selector field.