Skip to main content

Notifications

Community site session details

Community site session details

Session Id : O9OXmvsFuCHpRqoqtPZOa7
Power Apps - Building Power Apps
Answered

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

Like (0) ShareShare
ReportReport
Posted on 7 Jul 2023 15:20:54 by 88

Title, if yes then how?

  • Ran31 Profile Picture
    2 on 19 Sep 2023 at 00:07:38
    Re: Can I have different forms for different views in sharepoint lists?

    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?

  • hthpowerapper Profile Picture
    364 Super User 2024 Season 1 on 07 Jul 2023 at 17:40:11
    Re: Can I have different forms for different views in sharepoint lists?

    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"
  • jlk1 Profile Picture
    88 on 07 Jul 2023 at 17:29:35
    Re: Can I have different forms for different views in sharepoint lists?

    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?

  • Verified answer
    hthpowerapper Profile Picture
    364 Super User 2024 Season 1 on 07 Jul 2023 at 17:27:27
    Re: Can I have different forms for different views in sharepoint lists?

    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 07 Jul 2023 at 16:05:29
    Re: Can I have different forms for different views in sharepoint lists?

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

     

  • hthpowerapper Profile Picture
    364 Super User 2024 Season 1 on 07 Jul 2023 at 15:49:13
    Re: Can I have different forms for different views in sharepoint lists?

    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 07 Jul 2023 at 15:23:53
    Re: Can I have different forms for different views in sharepoint lists?

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard
Loading started