⚠ 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 another value to the callback field



archerwisdom
  • profile picture
  • Member

Posted 03 April 2014 - 15:50 PM

hi,

 

how can I pass a different to the callback_field function?

 

Example I have the code :

 

$crud->callback_field('price-dd',array($this,'price_callback'));

 

 

And I have a field name price and I want to pass this value to the price-dd field. 

price-dd is a drop down list, the default value should be equal to price field, unless it is a new record, then it would be empty or 9999.