Hello,
I want to add hidden fields to my form. The fields are not in a database.
Fields test1, test2 and test3 should have a value from an array which is available in controller.
Can you please tell me how to pass value for $value variable in callback_test1?
$crud->fields('title','category','test1','test2','test3');
$crud->callback_field('test1',array($this,'callback_test1'));
function callback_test1($value, $primary_key) {
return "<input type='hidden' name='test1' value=".$value['value_for_test1']." id='test1'/>";
}
What should I do so there is value in hidden filed?
Thank you in advance.