Canvas Form View - Client Script Page on load - Url params not working

Canvas Form View - Client Script Page on load - Url params not working

We have a custom module with a canvas page for form view.  We have a button in Customers module to open this canvas page using invokeurl function. We send few parameters as in the URL as query parameters.

https://crm.zoho.in/crm/orgxxxxxxxx/tab/CustomModule12/create/canvas/64333200000261xxxx?layoutId=643332000002605001&c=${Customers.Customer Id}&name=${Customers.Last Name}&m=${Customers.Mobile}

In the client script, page on load event, we try to get these parameters. Looks like the parameters are not received properly. The phone field is not filled.

var urlParams = ZDK.Page.getURLParams();
 
// Check if the 'Customer' parameter exists
if (urlParams && urlParams.m ) {
   ZDK.Page.getField("Phone").setValue(urlParams.m);
}