Start tracking your progress
Trailhead Home
Trailhead Home

Create a Self-Registration Page

Learning Objectives

After completing this module, you’ll be able to:
  • Set up a self-registration page.
  • Describe how to gather additional information when users register.
  • Describe what happens behind the scenes when users register.

Set Up Self-Registration

In the previous unit, you created a login page so that your customers can log in to your external identity community. But how do they get in the first time? How do you add a Register option to your login page? Good news: You’ve already done most of the work.
  1. If you closed Community Workspaces, from Setup, enter Communities in the Quick Find box, select All Communities, then click Workspaces next to customers.
  2. Select Administration, then select Login & Registration.
  3. Under Registration, select Allow external users to self-register.

    Notice that the page expands to display the Registration settings populated by the Aloha template.

  4. For Profile, select Customers.
  5. For Account, click Lookup magnifying glass and enter Customers in the search box. Choose the Customers account.
  6. Click Save.

Registration login page

It’s as simple as that. You’ve got yourself a registration page. Now you can invite a customer to join your community.

Return to your private (incognito) browser and reload the login page. Notice that the login page now has a “Not a member?” link, which folks can use to self-register.

Login page with Not a Member link

Register a New Customer

Let’s see what happens when we try to register a new customer.

  1. From your login page in the private (incognito) browser, click Not a member? and make up a name for your new customer. Use your own email address so that you receive the welcome email.

    Login page with Not a Member link

  2. From your Salesforce org, click Accounts and then click the Customers account.
    Your new customer appears under Contacts.
  3. From Setup, enter Users and select Users.
    Your new customer appears under Users. Your customer is now a user in your org with access determined by the Customers profile and External Identity user license.

    User record for new customer

Customize the Login Page with Visualforce Pages

You’ve created a login page and added self-registration using default Community Builder pages. Simple, right? Community Builder pages give you a quick, general-purpose solution to creating login pages. But it’s not the only option. You can have complete control over your login experience (including login, forgot password, and registration pages) by building Visualforce pages.

With Visualforce, you can

  • Control how the page looks, right down to the pixel level
  • Include custom CSS and JavaScript

After you build your own Visualforce page to customize your users’ login experience, you assign the Visualforce page from Login & Registration. Here we assign a Visualforce page called “CommuntiesLogin,” which builds a custom login page.

Visualforce login pages

Several Visualforce pages come out of the box with Salesforce. Plus, developers familiar with Visualforce can create them for you. If you’re curious, you can check out the Visualforce pages that are already in your org—but not now. Let’s finish what we started.

  • Click Cancel to continue.

What Happens When a Customer Self-Registers to Join Your Community?

When a customer self-registers to join a community, Salesforce does a couple of things behind the scenes.
  • Salesforce creates a User record and Contact with the information that the registrant provides on the self-registration page.
  • Salesforce associates the Contact with an Account, in our case, Customers. You created the account earlier as part of setting up your org.
  • The User record is assigned the Customers profile, that you cloned from the External Identity User profile earlier in this module.

Congratulations! External identity is up and running in your community.

What’s next? Let’s give your customers the option to sign in from their social account.

retargeting