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 jump to an a...
Power Apps
Unanswered

How can I jump to an assigned/customized Form from a View list?

(0) ShareShare
ReportReport
Posted on by 23

Hi PowerApps professionals:

 

I have a model-driven app in PowerApps, an Entity called "ProjectInfoList". Within the Entity, there's a customized Views called "NewView". And there's a default Main Form under Forms when the Entity is created.

 

On the front-end page, I could see the data list of records through "NewView". By clicking the link text of one data record, it opens the default Main Form to show record details.

 

Later, I created a customized Main Form called "NewForm". On top of this change, when I click the link text of one data record on the front-end page, it automatically opens the Main Form "NewForm" that I created to show the record details. It has different set of fields and different format to the Entity's default Main Form.

 

What I would like to get is: when I click the link text of one record, it could open the Form that I assigned, either the default Main Form or the created "New Form". In another words, I expect View A can navigate to Form A, View B can navigate to Form B, all of them are from the same Entity.

 

Can anyone share the way how to achieve this goal?

I searched many resources online but failed to see a proper reference.

 

Thanks in advance!

Untitled.png

Categories:
  • GarethPrisk Profile Picture
    2,828 on at

    What you are describing is not quite possible. However, there are a few ways to accomplish this.

    There are functions you can execute on a view's column, and you could execute the openForm function. This would need to be setup per view, for a specific form, and for multiple columns. This likely would not lead to a consistent user experience.

     

    If it is absolutely necessary to switch Forms based on the record, then you can accomplish this with a form script on either of the forms.

    1. Create a web resource to put on each of the Forms
    2. Determine the logic (similar to view logic) to determine what kind of record opens what kind of form
    3. Execute an OnLoad function that calls
      1. https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-navigation/openform
      2. https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-utility/getpagecontext
      3. You can use their samples to build up the function, and dynamically determine if the form is the correct one, otherwise open the other form

    This is not a great approach, I realize, but it's going to be the simplest way to accomplish the desired behavior.

     

    A few items for consideration:

    1. Are the forms really that much different? Can you simply show/hide based on the same criteria that determines the views?
    2. How often will users change types? If it's minimal, then the approach above should be fine, since the double-navigation won't happen every time
  • Tiamo_Liu Profile Picture
    23 on at

    Hi @GarethPrisk ,

     

    Thanks a million for your reply. It gives couple of suggestions. Among those, I believe "There are functions you can execute on a view's column, and you could execute the openForm function" is what I'm eager to pursuit. Due to my light knowledge base, could you please kindly share a detailed example of how to execute functions on a view's column, and where to execute the openForm? I read through the openForm function doc, it seems like the "formId" has to be assigned to the openForm in order to display the desired form instance, could you please also comment where to find the "formId"?

     

    Thanks again!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard