You are here:
Set Up a Site and Domain for Your Vaccine Eligibility Forms
Create a site and connect it to your domain. Then, change the home page to one of the Visualforce pages included in the Vaccine Eligibility package and set up public access to the form.
First, let’s create everything you need to get started.
-
Enable Digital Experiences and register a domain.
The domain should be in the format
YOURSITE-community/force.com. For detailed steps, see Enable Digital Experiences. - Create a new Salesforce Tabs + Visualforce Community. Don’t activate it yet.
- Make sure that an Experience Cloud site was created with your domain.
-
Set up a custom domain to serve your site.
- We recommend that you use the Salesforce CDN to serve your custom domain.
- When you add a custom URL, enter / to create a root path for your domain.
Change the home page of your site to one of the Visualforce pages included in the package, then set access.
- Go to .
- Click the site label of your Experience Cloud site. (The site type is Community.)
- Click Edit.
-
Under Active Site Home Page, use the lookup to find the page you want to use as the home
page.
For the Vaccine Eligibility packages, use Vaccination Sign-Up Start Page.
-
Make sure that the following settings are selected:
- Require secure connections (HTTPS)
- Upgrade all requests to HTTPS
- Click Save.
- Click Public Access Settings.
- On Enabled Visualforce Page Access, click Edit.
-
Add every page that begins with
vaxpk. - Click Save.
- On Enabled Apex Class Access, click Edit.
-
Add the following controller.
For Vaccine Eligibility packages, add
vaxpk.PreRegUserInputController. - Click Save.
Activate your site.
- Go to .
- Click Workspace next to the Tabs + Visualforce Community you created in step 2.
-
Click Activate.
Your site’s content is published on your custom domain and URL.
Preview your site.
- Go to .
- Click the name of your custom URL.
-
Click View next to the root path.
Note If you made any changes to the Visualforce pages, preview your site with the Experience Cloud site URL instead. It can take some time for changes to appear from your external domain.
To protect your sign-up form against bots, we strongly encourage you to implement a captcha solution for your registration form. Learn More
Keep in mind that any server-side processing that you introduce with your recaptcha implementation impacts the performance of the form. Notify Salesforce before performing any load or scale testing in production.

