web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Modal Custom Page Nati...
Power Apps
Unanswered

Modal Custom Page Native Close Button Customization

(0) ShareShare
ReportReport
Posted on by 27
Hello,

I have a PCF that's hosted on a custom page that's navigated via a JS on D365 apps. I want to implement a prompt for dirty state and prevent closing the page. I was thinking about using session storage but how can I add a logic to the native close button of the page? Keep in mind that page runs in a modal window.
 
let pageInput = {
pageType: "custom",
name: "custompagename",
entityName: PrimaryEntityTypeName,
recordId: parentRecordId
};
 
let navigationOptions = {
target: 2,
position: 1,
width: { value: 100, unit: "%" },
title: "Add Products"
};
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 460

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 330 Super User 2025 Season 2

Last 30 days Overall leaderboard