getCommission
Gets the commission of a field.
Description
vcc.getCommission(field: string): number
Parameters
field
The name of the field. If missing, it returns all fields’ commission.
Return values
number
The commission.
Example
We want to display commission to the agent if the value is selected by the agent.
const commission = vcc.getCommission('amount');
vcc.setFieldValue('commission', commission);
vcc.getController('page', 'commission').refresh();
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.