Basic form configuration

Completed

You can add a form to a webpage from the components menu in Power Pages design studio.

Note

Previously, forms were called basic forms.

Create a form

Design studio provides a modern maker experience for creating and managing forms. To create a form in the Power Pages design studio, use the following procedure:

  1. Sign in to Power Pages home.

  2. Select the correct environment in the upper-right corner.

  3. Select the website and then select Edit.

  4. Select the Pages workspace.

  5. Select Page.

    • Enter Supplier as the page name.

    • Clear the Add page to main navigation checkbox.

    • Select the Start from blank template.

    • Select Add.

  6. On the page canvas, in the empty section, select the Form component.

    Screenshot of inserting the Form component in Power Pages design studio.

  7. Complete the following tasks in the properties dialog.

    1. Select New form.

    2. For Choose table, select Account.

    3. For Select a form, select Information.

    4. For Name your copy of the selected form, select Supplier.

    5. Select the Data tab.

    6. For Data from this form, select Is Read only.

    7. Select OK to add the form to the page.

As the page refreshes, the form layout displays directly on the page canvas.

Screenshot of a WYSIWYG form on the page canvas in Power Pages design studio.

Note

Scroll down the form that's displayed on the page canvas to verify that all tabs from the Dataverse form are included.

For more information about creating and editing forms in Power Pages design studio, see Add forms.

Set up the form

You can create and edit forms directly on the page canvas. However, you won't be able to edit all available settings in the design studio. More configuration options are available in the Portal Management app. To access a form configuration in the Portal Management app, follow these steps:

  1. Select the form on the page canvas.

  2. Select Edit form.

  3. Select the Data tab.

  4. Select Open portal management app.

Simplify form layout

To simplify the form layout, follow these steps:

  1. Select General as the Tab name.

  2. Select Save.

    Screenshot of the Basic Form Portal Management metadata.

  3. Return to the Power Pages design studio tab or window.

  4. Select Sync configuration.

  5. The form layout now includes only the columns from the General Dataverse form tab.

For more information about setting up forms in the Portal Management app, see About basic forms.

Add a form to your website

A form defines the required behavior, but it doesn't contain information about how and where on the site the form should render. The two ways to render a basic form in a portal are:

  • Explicitly specify the form as a target for a list action, such as Create, View, or Edit. In this case, the form renders in a modal pop-up window. Certain limitations apply when the form is rendered in a pop-up window. For example, the ability to create related rows from subgrids isn't available.

    Screenshot of selecting a form as the form to view details of a row in a list.

  • Similar to a list, you can add a form component to a webpage in the design studio. This action places a Liquid tag on the webpage copy to render the form. In advanced scenarios, you can insert this tag directly into the page source by using Visual Studio Code editor.

{% entityform name: '<<basic form name>>' %}

Important

Access to the forms on the published website is controlled by table permissions. For example, a visitor would require read permissions for the table to access a read-only form. When permissions aren't sufficient, depending on the configuration, the visitor might be redirected to a sign-in page, receive an access denied error message, or view a read-only form instead of an editable one.