Hi,
I have a form with some default settings. This works well when the user is completing a new form, but when they are updating a form that they have completed on behalf of another employee, the form reverts the data.
**Note, employee names have been blocked and changes for privacy purposes.
I have a default set on a people picker for employee name (see below).
DefaultSelectedItems = {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
DisplayName:User().FullName,
Claims:"i:0#.f|membership|" & Lower(User().Email),
Department:"",
Email:User().Email,
JobTitle:"",
Phone:Office365Users.UserProfileV2(User().Email).businessPhones,
Picture:User().Image,
Manager:""
}
How do I ensure the Employee Name does not change when they update the form?
Thanks in advanced.
Solved! Go to Solution.
Hi @w1sd0m,
Unfortunately that came up with invalid errors. It didn't give much details which is annoying.
Previously, editing the form would open the original "NewItem" screen but have the item set to Gallery1.Selected . To get around this issue we added a new screen called "UpdateItem" that didn't have all original default functions on the fields.
I can probably revisit this issue during phase 2 of the release.
Thanks,
Set DefaultSelectedItems to:
If(
Checkbox1.Value = true,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
DisplayName: User().FullName,
Claims: "i:0#.f|membership|" & Lower(User().Email),
Department: "",
Email: User().Email,
JobTitle: "",
Phone: Office365Users.UserProfileV2(User().Email).businessPhones,
Picture: User().Image,
Manager: ""
}.DisplayName,
Checkbox1.Value = false,
ThisItem.Person.DisplayName
)
Hi @w1sd0m,
Unfortunately that came up with invalid errors. It didn't give much details which is annoying.
Previously, editing the form would open the original "NewItem" screen but have the item set to Gallery1.Selected . To get around this issue we added a new screen called "UpdateItem" that didn't have all original default functions on the fields.
I can probably revisit this issue during phase 2 of the release.
Thanks,
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
252 | |
124 | |
85 | |
84 | |
67 |