⚠ 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

callback_add_field



xxaxxo
  • profile picture
  • Member

Posted 05 November 2012 - 14:58 PM

Is there any way to get a param in the callback function with the field name ?
in the example:

$crud->callback_add_field('phone',array($this,'add_field_callback_1'));


function add_field_callback_1()
{
return '+30 <input type="text" maxlength="50" value="" name="phone" style="width:462px">';
}

the add_field_callback_1 doesnt recieve anything - can i get atleast the column name in it ?


I'm trying to predefine some things in a multiselect and change gCrud to have "add new" button before the multiselect - so that people can add things when inserting in a database with a relation_n_n