Hide on Prompt signup-id Page Text Fields footerLinkText and footerText Based on Condition

Overview

This article explains whether it is possible to hide the prompt “signup-id” in the text fields footerLinkText and footerText based on a condition.

Applies To

  • New Universal Login
  • Text elements

Solution

This is not currently supported when using the New Universal Login experience.

As a workaround, it is possible to use the Classic Universal Login experience to provide a customized login page, using either the Lock SDK or a fully custom UI powered by Auth0.js, for example.

The Lock SDK has an option for disabling login which could be set dynamically based off of some element in the config object, for example a query parameter found in “config.extraParams”:

For example, similar to the solution here:

By sending an “action=signup” query parameter in the /authorize request, it would be possible to configure Lock dynamically to both show the signup UI and suppress the login link:

var isSignup = config.extraParams && config.extraParams.action === "signup";
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
  [...] // all other Lock options
initialScreen: isSignup ? "signUp" : "login",
allowLogin: !isSignup
}

Please see this document to see the differences between New and Classic Universal Login experiences: