I'm trying to count values as array from Col but just take one (1), this is my code:
$num_cant = count($data["params"]["attachment"]);
Thanks by your help!
If using multi-file upload feature,
You can use:
$arr = explode(",",$data["params"]["attachment"]
then use count($arr);
You can use
phpgrid_error($data); to see what actually is in $data variable.
This will be shown on edit dialog as error message (to debug)
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?