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.
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);
}