Hello,
Is possible set default value when insert a new row. I used $col['editoptions'] and works but i need only set default value when add, when edit i want in cell value of database.
Thanks!
3 Answers
You need to set defaultValue property for that. e.g.
$col["editoptions"] = array("size"=>20, "defaultValue"=>'10')
Hi Abu,
I do not want this field to be shown in add form. Just add default value when inserting into DB.For ex, I would like to default to current user id .
Your Answer