getCurrentPage
The vcc.getCurrentPage() function is used to retrieve the exact name of the script tab that the agent is currently viewing. This is useful when you have global event handlers—like a centralized beforeValidation or an overarching onLoad function—but you only want certain logic to run when the agent is on a specific page.
Description
vcc.getCurrentPage(): string
Gets the name of the currently open script page that is visible to the agent at the moment.
Parameters
none
Return values
string – The name of the page.
Example
const pageName = vcc.getCurrentPage();
dump(pageName);
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.