⚠ 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

Help me ! how to show radio button & checkbox for CRUD



duangsin.k
  • profile picture
  • Member

Posted 02 June 2012 - 20:35 PM

Hi !!

i want show radio button & checkbox for CRUD , and example coding




thank

rikoy
  • profile picture
  • Member

Posted 28 June 2012 - 17:20 PM

I have the same problem, help please

johndavedecano
  • profile picture
  • Member

Posted 04 July 2012 - 14:38 PM

Create a new callback for the field like this one


$crud->callback_field('require',array($this,'example_callback'));


Then the callback function

function field_callback($value = '', $primary_key = null)
{
return '<input type="checkbox" name="require">';
}