You can pass 5 string parameters (s1, s2, s3, s4, s5) and 5 numeric parameters (n1, n2, n3, n4, n5) to the widget.
Parameters should be passed through the JS code after initialization of the widget. To do this, use the following code:
window.bukzaCallbackForBukzaContainer99999 = function(payload){
switch(payload.message.event){
case 'INITIALIZED':
window.bukzaSetCustomParametersForBukzaContainer99999({
s1: 'text parameter',
n1: 77.77
});
break;
}
};
In the example above, replace 99999 with the ID of your widget.
You can see an example of this code for your specific widget on the Widget code panel of the widget settings form. To get it, click the + Events handling button.
To pass parameters from an internal frame, execute the following code inside it:
<html>
<head>
<meta charset="UTF-8">
</head>
<script>
parent.postMessage(JSON.stringify({
type: 'BUKZA_CROSS_FRAME_WIDGET',
event: 'SET_CUSTOM_PARAMETERS',
data: {
s1: 'your text',
n1: 77.77
}
}), '*');
</script>
</html>
You can display the received parameters in the orders table. To do this, use the columns: S1, S2, S3, S3, S5, N1, N2, N3, N4, N5.
On the order form, the passed parameters are shown on the widget parameters form.
To open this form, click on the widget icon in the order number block.