Create a quick view form to view information about a related table
This article describes how to create a quick view form and how to add a quick view control to a main form.
A quick view form can be added to another form as a quick view control. It provides a template to view information about a related table row within a form for another table row. This means app users do not need to navigate to a different row to see the information needed to do their work.
Note that while a quick view form can appear over a view or a form, it is authored as a form, rather than a view.
In the example below notice the module that relates to a given lesson within the quick view form. A one-to-many relationship exists between the two tables for this to be possible. We can see additional columns of metadata, including the image associated with the module. The form then continues with the metadata associated with the lesson table record.
Quick view controls are associated with a lookup column that is included in a form. If the lookup column value is not set, the quick view control will not be visible.
Note
- Data in quick view form controls can't be edited and they do not support form scripts.
- Because quick view forms are viewed using a quick view control in a form, they do not include header, footer, or navigation areas. Security roles can't be assigned to quick view forms and they can't be activated or deactivated.
- Custom controls aren't supported in quick view forms, and there is limited customization support for complex controls such as subgrids. If this is required, consider using a Form component control
Create a quick view form
You create quick view forms using the form editor in a manner similar to the way you create other forms. Quick view forms are read-only. Use them to create forms that are for reading purposes only.
Sign in to Power Apps.
Select Tables on the left navigation pane, and then select the table that you want. If the item isn’t in the side panel pane, select …More and then select the item you want.
Select the Forms area.
On the toolbar, select Add form > Quick View Form.
In the Form panel, enter a Display Name and Description to differentiate this quick view form from others.
In the form designer, drag any columns from the Columns Explorer into the section on the form.
Important
Required columns can't be removed from a form. If you add a required column to the form and want to remove it, you must delete the form and then re-create it. When you set the required property for a column, a row can't be saved without data in the column.
To save the form select Save.
Select Publish to see the new form in the app.
Edit a quick view form
Quick view forms have a simplified layout because they are designed to be viewed within a form section. Only one single column tab is available. You can add only additional single column sections, columns, subgrids, and spacers.
Sign in to Power Apps
Open the solution relevant to your table or access the table directly from the data option in the sidebar.
Open the table you want, and then select the Forms area.
Either select the quick view form, or select ... next to the form, and then select Edit form in new tab.
Add or remove the table columns you want.
Important
Required columns can't be deleted. If you add a required column to the form, you can't delete it. If you don't want the column in the form you must delete the form and then re-create it.
When you edit a quick view form, you must publish your changes before they will be visible in the application.
Add a quick view control to a main form
Quick view forms can only be added to a main form where a lookup column exists that targets the table of the quick view form.
Sign in to Power Apps.
Select Tables on the left navigation pane, and then select the table that you want. If the item isn’t in the side panel pane, select …More and then select the item you want.
Select the Forms area.
Select a form, which Type is Main
In the form designer, from the Components pane select Quick view.
In the Select quick view forms dialog box, select the Lookup column, and then select the lookup column value. More information: Quick view control properties.
Select Done to close the Select quick View forms dialog box. The quick view form appears on the form.
To save the form select Save.
Important
Be aware of the behavior that occurs when you create a parent relationship with the same table. For example, if Account has a relationship to Account and a lookup is created that is used by a quick create form that creates a parent row, the first row will not be saved with the lookup that has the parent row value. This is because of the circular reference introduced by using the same table. If this issue is experienced it can be resolved by removing the parent row id on the quick create form before saving the row.
Quick view form properties
When the quick view form is used in a main form the following properties can be set or updated.
Property | Description |
---|---|
Name | Required: The unique name for the quick view form that is used when referencing it in scripts. |
Label | Required: A label to display for the quick view form. |
Display label on the Form | Displays the label on the form. |
Lookup Column | Choose one of the lookup columns included in the form. |
Related table | This value depends on the Lookup Column chosen. It is usually the primary table for the 1:N table relationship for the lookup. If the table includes a Potential Customer lookup that can accept either an account or contact, in the Quick View Form column you can choose a quick view form for both account and contact by changing this value and then choosing another quick view form. |
Quick View Form | If the Related table has any quick view forms these can be selected here. Otherwise, select New to create one. |