// When navigating to the edit form
Set(currentItemID, YourItemID);
Navigate(EditScreen);
If(
Form1.Valid && Form2.Valid, // Check if both forms are valid
Patch(
Tracker,
LookUp(Tracker, ID = currentItemID), // Find the existing item by ID
Form1.Updates,
Form2.Updates
);
Navigate(SuccessScreen) // Navigate to the success screen only if Patch is successful
)
If(
Form1.Valid && Form2.Valid,
If(
IsBlank(Patch(
Tracker,
LookUp(Tracker, ID = currentItemID),
Form1.Updates,
Form2.Updates
)),
Notify("Error updating item", NotificationType.Error),
Navigate(SuccessScreen)
),
Notify("Form validation failed", NotificationType.Error)
)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.