Introduction

As of the 2019-R1 release, Standard style forms can be displayed in Lightning Communities as Stand Alone Forms. This allows you to provide your users with any forms you want them to fill out directly from the Lightning Community.

Note

Accordion and Wizard style forms currently cannot be used as Lightning Forms.

Enable Stand Alone Forms

You will need to create a Lightning Page with the Fonteva Form component to display and preview Lightning Forms on your Community Site.

  1. Click Setup. Setup will open in a new tab.
  2. Enter All Communities in the Quick Find field.
  3. Select All Communities from the options generated. The All Communities page will launch.
  4. Select the Builder link for your Community. The Community Builder will open.



  5. Click Home to open the Pages dropdown menu.



  6. Click + New Page at the bottom of the Pages dropdown menu. The New Page modal will open.
  7. Select Standard Page.



  8. Select 1-full-width column. Click Next.



  9. Enter Forms Page as the name of the page. In addition, the URL must end with /forms-page.



  10. Click Create. The new page will open.
  11. Click the Lightning icon to open a dropdown list of components.



  12. Drag and drop the Fonteva Form component into the Content section of the page.
  13. Click Publish. The Publish Your Community confirmation message will open. Click Publish to confirm. You will receive a confirmation email when the page has been published.

Create a Lightning Form URL

When you've created a Standard style form you want to make available in your Lightning Community, you will need to compile a URL to apply the Lightning Form to your Community. You will also need to create this URL in order to preview and test any Dependent Picklists you've included in your Lightning Form.

Note

The Preview button in the Form Builder will not correctly display Dependent Picklists on your form. You will need to compile a URL using the steps below to preview Dependent Picklists.


  1. Click Setup. The Setup page will open in a new tab.
  2. Enter All Communities in the Quick Find field.
  3. Select All Communities from the options generated. The All Communities page will launch.
  4. Select the Builder link for your Community. The Community Builder will open.



  5. Click Home to open the Pages dropdown menu.
  6. Select the forms page you created previously.
  7. Click Page Properties.



  8. Copy the URL from the URL field and save it for later. This is your Page URL.



  9. Click the tile icon (
    ) in the upper left-hand corner and select Salesforce Setup to navigate back to Salesforce. The Setup page will open in a new browser tab.



  10. Navigate back to your desired Forms record page.
  11. Copy the highlighted section from the form record page's URL and save it for later.



  12. Navigate to a Contact and log in to your Community Site.



  13. Copy the highlighted  portion of your Community Site URL as designated in the screenshot below and save it for later.



  14. Combine the copied URL portions that you have saved as follows:

    Lightning Form URL

    Community Site URL Page URL?id=Form URL

    Example: https://us-tdm-tso-15eb63ff4c6-1692a65247f.force.com/uscal/s/forms-page?id=a0S1U000000II36UAG

  15. Enter the new URL in the browser window. The Lightning Form page will open. You can use this to preview your form or use the URL for active use. Clicking Submit will generate a form response record.