Skip to content

Open Page

This method lets you to open a page in an app

Parameters

Parameterstype
pageIdString

Syntax

const pageInstance = kf.app.openPage("pageId");

Returns

Returns Page instance

Example scenario

Suppose you want to redirect users to their respective pages based on their roles.

let userRole = kf.user.Role.Name;
if (userRole === "Admin") {
kf.app.openPage("Admin_page_id");
} else {
kf.app.openPage("Non_Admin_");
}