Skip to main content

openBackPage

openBackPage

Returns to the previous page (form). Equivalent to the Navigator's back action.

Parameters: None

Returns: None (void)

Description

$form.openBackPage moves back through the current page stack. Internally it calls KAppManager().openBackPage().

$form vs $app

Both $form.openBackPage and $app.openBackPage call the same KAppManager().openBackPage() internally. There's no functional difference between them.

Example

// 이전 페이지로 이동
$form.openBackPage();

// 조건부 뒤로가기
if (isFormValid) {
$form.openBackPage();
} else {
$log.i("입력값을 확인해 주세요.");
}

Related

  • $form.openPage(pagePath, linkArg, route) — opens a new page
  • $app.openBackPage() — the same behavior at app level