i call the index.php file passing a variable in url and assign it to a column as default value with $col["editoptions"] = array("defaultValue" => "$pid");
To store this value on new record the cols need editable if possible make it readonly on the add form?
Thank you and good work!
Pasting from docs:
$col["editoptions"] = array("defaultValue"=>"Test Value","readonly"=>"readonly", "style"=>"border:0");
When I set "readonly" like your example, add routine skip defaultValue. If I delete "readonly", defaultValue is stored correctly but I can change value in the add/edit panel.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?