Hello,
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!
Leonardo
5 Answers
Hi,
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.
Why this??
Your Answer