Page Template Cannot be Applied for Specific Prompts

Overview

This article explains why Page Template cannot be applied for specific prompts. The following conditional statement is an example of one that cannot be applied:

{% if prompt.name == "mfa-phone-challenge" %}

Applies To

  • Page Template
  • Universal Login Customization

Cause

The Page Template cannot be applied because the variables and values do not match.

Solution

Page Templates can be applied for specific prompts using the conditional statement, {% if prompt.name == "PROMPT NAME" %}.

In the following example, A screen instead of a prompt is specified:

{% if prompt.name == "mfa-phone-challenge" %}

  • For example, while “mfa-phone” is a prompt name, “mfa-phone-challenge” is a screen name.
  • To specify a screen, prompt.screen.name should be used. The value should be a prompt name if to specify a prompt.
    • The prompt.screen.name variable should be used to specify a screen. {% if prompt.screen.name == "mfa-phone-challenge" %}

OR

    • The value should be a prompt name to specify a prompt. {% if prompt.name == "mfa-phone" %}

Related References