⚠ 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

set_relation save id



brobman
  • profile picture
  • Member

Posted 04 June 2012 - 11:44 AM

Hello,

I am usung the set_relation function and it works great.
One thing i can't get to work:

I want to display another value then the value that is saved from the table where the field is related to.

$crud->set_relation('location','location','location_name');

Above i get the location name as a list, wonderfull. But now i want to save the id of that record.

Is that possible?

Thank you.