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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How can I tell if a fo...
Power Apps
Answered

How can I tell if a form is being shown as a dialog

(0) ShareShare
ReportReport
Posted on by 31

If I open a main form as a dialog using the navigateTo function, how can I tell in the on-load event I have registered that this is the case?  Is there a way from the context to tell that the form is being displayed as a dialog rather than normally?

 

Thanks

 

Alan

I have the same question (0)
  • Alan Roberts Profile Picture
    31 on at

    Currently I have resorted to adding a custom parameter to the form called parameter_isDialog which I set to true when opening using navigateTo.  I would rather use a native way of determining this if one exists?

     

    Thanks

  • Verified answer
    Ram Prakash Duraisamy Profile Picture
    5,877 Super User 2026 Season 1 on at

    Hello @DCSAlan 

     

    You can only do by passing parameter in Navigateto Options

     

     

    var pageInput ={
    pageType ="entityrecord",
    entityName:"ENTITYNAME",
    data:{
    isDialog:true
    }
    }

     

    Once you done this in the ONLOAD of the Entity, you can use

    function onload(ExecutionContext){
    var formContext = ExecutionContext.getFormContext();
    var xrmObjectParameter = formContext.getQueryStringParameters();
    
    if(xrmObjectParameter["isDialog"]!=null && xrmObjectParameter["isDialog"]=true){
    //Process your operation
    }
    }

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Follow me on Twitter : @rampprakashd
    Blog : https://microsoftcrmtechie.blogspot.com

     

     

  • Alan Roberts Profile Picture
    31 on at

    Thanks for confirming  @rampprakash.  This is the method I mentioned above so it is good to know it is my only option.

     

  • Ram Prakash Duraisamy Profile Picture
    5,877 Super User 2026 Season 1 on at

    Yes @DCSAlan 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 333 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 86 Super User 2026 Season 1

Last 30 days Overall leaderboard