Skip to main content

Design and Deploy Forms with Discovery Framework

Learning Objectives

After completing this unit, you’ll be able to:

  • Create form questions.
  • Build a form.
  • Create and preview the form layout.
  • Activate and deploy the form.

Matt has good news for Ryan. Discovery Framework is set up and ready to use. Ryan is excited to see how Matt creates an account-opening form. Follow along as he explores these capabilities of Discovery Framework.

Create Questions

Questions are the building blocks of forms. Matt starts by creating the questions for the form. 

  1. From the App Launcher, enter Assessment Questions, and then select Assessment Questions.
  2. Change the list view to All Assessment Questions.
    Changing the list view to All Assessment Questions.
  3. Click New.
    Entering the information in the New Assessment Question window.
  4. In the New Assessment Question window, enter the following details:
    • In the Name field, enter Mailing Address.
    • In the Data Type field, select Text.
    • In the Category field, select Demographic.
    • In the Question Text field, enter Mailing Address.
    • To make this question the active version, select Active.
      Note: If you select Active, it makes the question active and archives the previous version of the same question.
    • In the Help Text field, enter explanatory text. The text appears in an info bubble next to the question on the form to help users give an answer.
    • Click Save and New.
  5. Repeat the steps to add the following questions one after the other:
Name Data Type

First Name

Text

Last Name

Text

Primary Email

Email

Primary Phone

Telephone

Employment Type

Text

Source of Funds

Text

Thank You message

Text block

For information on supported data types, see Resources.

Create a Form

Next, Matt creates the form. OmniStudio gives him an intuitive interface to use branching, rendering, and forking logic.

  1. From the App Launcher, enter Assessment Questions, and then select Assessment Questions.
  2. Change the list view to All Assessment Questions.
  3. Click Select Questions.
  4. Enter the OmniScript details to give high-level information about your OmniScript.
    In this example screen, Name is Account Opening Form, Type is FSC_Sample, Language is English, and SubType is Account_Opening_Sample.
    Entering the OmniScript details in the Create Form window.The Type, SubType, and Language values combine to create a unique identifier that becomes the name of a compiled OmniScript's Lightning web component.
  5. Create the steps, which correspond to the form questions. You can group multiple questions in a single step and create multiple steps in a form.
    • To create a step, click Add Step.
    • To change the step title, click the edit icon on the step header, enter the step name, and then press Enter. For example, enter Personal Information as the step name.
  6. Search for questions from the Search Assessment Questions search box.Adding questions to the Account Opening Form.
  7. Drag each question on to the OmniScript.
  8. Click Build OmniScript to generate the OmniScript.

Next, use OmniScript Designer to build the layout of the form. To open an existing OmniScript in OmniScript Designer, from the App Launcher, search for and open OmniScripts. Then, click the required OmniScript.

Build the Form Layout

Matt builds the layout of his form by dragging elements into position using the OmniScript Designer. While setting up the form layout, Matt can:

  • Preview elements inside steps.
  • View property changes in real time.
  • Access contextual guidance with in-app help.
  • Discover and learn about features without moving away from the script.

To build the form layout:

  1. From the App Launcher, search for OmniScripts, and then select OmniScripts.
  2. Change the list view to All OmniScripts.
  3. Select the Account Opening OmniScript.
    The questions that you created are populated in the OmniScript. Now you need to arrange the questions to make the form readable.
  4. To preview and configure elements, on the canvas, expand the steps.
  5. Drag the required action, display, function, group, and input elements to build the form layout. You can also embed an existing OmniScript in the form.
  6. Enhance the form by dragging the required elements from the palette onto the form. In this case, drag a step to add a response message.
  7. In the Properties tab, enter Confirmation in the Name field.Adding Step Properties in the Account Opening Form.
  8. Click Edit Form.Adding Thank You response to the Confirmation step in the Edit Form window.
  9. From the Edit Form window, in the Search Assessment Questions search box, search for thank you.
  10. Drag and drop the response message to the Confirmation step, and click OK.

Preview the Form

Matt is now excited to preview his OmniScript in real time with real data in OmniScript Designer.

  1. On the designer header, click Preview.
  2. Click Refresh to preview the form with test data.Previewing the form.

Activate and Deploy the Form

Matt is satisfied with the preview and proceeds with activating and deploying the OmniScript.

On the designer header, click Activate Version.

Form activation in progress.

Activating the OmniScript generates a Lightning Web component that you can then publish on either a Lightning page or Experience Cloud site. The responses to an assessment, depending on the data type, are stored in an appropriate data type column on the Assessment Question Response object.

On the assessment record page, click the Related tab and view the responses in the Assessment Question Response related list.

Viewing the responses in the Assessment Question Response related list.

Matt is surprised that he could rebuild the complex account-opening form with questions from a single source of truth. When he starts to review the collected form data, he’s thrilled to see all the prompt and accurate responses from customers. He’s now ready to take on the next Cumulus Bank questionnaire to make it compliant and user friendly.

Resources

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities