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 / Can I have different f...
Power Apps
Unanswered

Can I have different forms for different views in sharepoint lists?

(0) ShareShare
ReportReport
Posted on by 88

Title, if yes then how?

Categories:
I have the same question (0)
  • jlk1 Profile Picture
    88 on at

    Ex. If my sharepoint list view is set to Active projects then it would bring up the active form when I hit edit/new. But then if I used my In-Active projects view, it would bring up the In-Active form.

     

    Trying to streamline lists where there is an admin and engineering view which have totally different requirements and I don't want to have them scroll through a bunch of unnecessary stuff.

  • hthpowerapper Profile Picture
    364 Super User 2024 Season 1 on at

    Yes! Sharepoint Allows you to create Custom Forms using Power Apps. You can then associate these custom forms with your different views. Something like this.

    1. Create separate Power Apps forms for each view: For example, create an "Active Projects" form and an "Inactive Projects" form in Power Apps. Customize each form according to the specific requirements of the respective view.

    2. Customize the SharePoint list form: Go to the SharePoint list settings and select the "Form settings" option. Choose the "Use a custom form" option and specify the URL or reference to your Power Apps form for each view.

    3. Associate forms with views: In your SharePoint list, create different views such as "Active Projects" and "Inactive Projects". Edit each view and select the respective custom form to be used when editing or adding items

  • jlk1 Profile Picture
    88 on at

    Is there some sort of guide or screenshots you could post? I can't seem to create/link another form to my list view

     

  • Verified answer
    hthpowerapper Profile Picture
    364 Super User 2024 Season 1 on at

    There is no way to directly/automatically link a View and a form but you can add logic to your app to simulate this. such as an engineer page/form and an admin page/form. You would need to add some logic to check which user is using the app and display the appropriate form based on which view they would potentially have. Apologies if my previous answer was misleading.

  • jlk1 Profile Picture
    88 on at

    okay so what your saying is that I would have to use some logic in my form to change the visibility of the information based on the viewer?

  • hthpowerapper Profile Picture
    364 Super User 2024 Season 1 on at

    Defintely. You could achieve this functionality by creating two separate forms - one for the 'admin' view and another for the 'engineering' view. Each form will display the necessary and relevant data for its intended user. It may be more simple to implement two seperate forms opposed to maintaining all the individual visiblity properties of your data cards in one form. You could do something like...

    1. Start by creating two distinct forms in your Power App. Let's call them 'AdminForm' and 'EngineerForm'. Each form should be connected to your SharePoint list.
    2. Customize the 'AdminForm' to include fields that are relevant to an admin user. Do the same for 'EngineerForm', but include fields that an engineer would need.
    3. Now, to display the correct form based on the user role, you can use the 'Visible' property of each form. This property determines whether a form is visible or hidden. For example, if you have a variable that holds the role of the current user, you can set the 'Visible' property of the 'AdminForm' to UserRole = "Admin" and 'EngineerForm' to UserRole = "Engineer"
  • Ran31 Profile Picture
    2 on at

    Could you please explain with screen shots, or go into further details about the visibility variables? Is there a way to do it without using UserRoles?

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard