Skip to content

Commit eff9b92

Browse files
Update date and refine tutorial language (#10756)
* Update date and refine tutorial language Updated the date and improved tutorial phrasing. * docs: revert ms.date and minor cleanup - revert ms.date to original publication date; rendering engine shows last modified date dynamically from git history - remove hyphen in "conditionally visible" - trim trailing whitespace --------- Co-authored-by: Andrew Connell <me@andrewconnell.com>
1 parent 169a6c5 commit eff9b92

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

docs/business-apps/power-apps/get-started/create-your-first-custom-form.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: Customize a form for a SharePoint list
33
description: Customize a form for a SharePoint list
4-
ms.date: 09/27/2022
4+
ms.date: 06/17/2020
55
ms.localizationpriority: high
66
---
77

88
# Customize a form for a SharePoint list
99

1010
Using Power Apps, you can easily customize a form for a SharePoint list that works best for your team or organization.
1111

12-
In this tutorial, you will create a custom form with a user profile photo, a read-only field, and a conditionally-visible field.
12+
In this tutorial, you create a custom form with a user profile photo, a read-only field, and a conditionally visible field.
1313

1414
## Required setup
1515

@@ -38,7 +38,7 @@ Before starting, make sure your SharePoint site is set up with the [required lis
3838
![Add an image in Power Apps studio](../../../images/gs01-power-apps-studio-add-image.png)
3939

4040
1. To customize the appearance of the image, you can set its properties.
41-
41+
4242
1. When you select a control on the canvas, on the right-hand panel, the **Properties** pane associated with the control appears.
4343

4444
![Image control with Properties panel](../../../images/gs01-image-control-selected.png)
@@ -48,7 +48,7 @@ Before starting, make sure your SharePoint site is set up with the [required lis
4848
1. With **Image1** selected, in the [formula bar](/powerapps/maker/canvas-apps/working-with-formulas), change the property to **Height**, and enter `Owner_DataCard1.Height` as the formula. **Image1** now has the same height as **Owner_DataCard1**.
4949

5050
![Set image height](../../../images/gs01-set-image-height.png)
51-
51+
5252
1. Set the width of **Image1** to be the same as its height. In the formula bar, change the property to **Width**, and enter `Self.Height` as the formula.
5353

5454
![Set image width](../../../images/gs01-set-image-width.png)
@@ -61,10 +61,13 @@ Before starting, make sure your SharePoint site is set up with the [required lis
6161

6262
1. To change the image of **Image1** from the sample image to the project owner's profile photo, you can use the Office 365 Users connector to retrieve the photo by the owner's email. First, [connect your custom form to the Office 365 Users connector](/powerapps/maker/canvas-apps/connections/connection-office365-users).
6363

64-
1. To retrieve the project owner's profile photo by email, in the formula bar, change the property to **Image**, and enter `Office365Users.UserPhoto(DataCardValue5.Selected.Email)` as the formula. The user photo from the owner's Office 365 user profile appears in **Image1**.
64+
1. To retrieve the project owner's profile photo by email, in the formula bar, change the property to **Image**, and enter `Office365Users.UserPhoto(DataCardValue5.Selected.Email)` as the formula. The user photo from the owner's Office 365 user profile appears in **Image1**.
6565

6666
![Set image picture](../../../images/gs01-set-image-picture.png)
6767

68+
> [!NOTE]
69+
> The formula `Office365Users.UserPhoto(DataCardValue5.Selected.Email)` uses a placeholder control name. In your form, ensure you reference the actual control bound to the **Owner** field.
70+
6871
When you change the project owner, **Image1** will update to the user photo of the new owner.
6972

7073
### Set a field to be view-only
@@ -85,9 +88,9 @@ To make the **Title** field view-only, follow these steps.
8588
![Select display mode field](../../../images/gs01-title-property-display-mode.png)
8689

8790
1. In the formula bar, enter `DisplayMode.View` as the formula.
88-
91+
8992
![View-only title](../../../images/gs01-title-data-card-view-only.png)
90-
93+
9194
Alternatively, in the **Properties** pane, set the value of **Display** mode to **View**.
9295

9396
**DataCardValue1** is now a view-only field.
@@ -112,7 +115,7 @@ To hide the **Attachments** field if the project owner is Nestor Wilke, follow t
112115
1. In the formula bar, enter the following formula: `If(SharePointIntegration.Selected.Owner.DisplayName = "Nestor Wilke", false, true)`
113116

114117
![Enter conditional formula](../../../images/gs01-attachments-conditional-visibility.png)
115-
118+
116119
If the project owner is Nestor Wilke, then the **Attachments** data card is hidden. Otherwise, it is visible.
117120

118121
You can write the same conditional logic in multiple ways. For more info, see [Operators and Identifiers in Power Apps](/powerapps/maker/canvas-apps/functions/operators).

0 commit comments

Comments
 (0)