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 / Creating 2 views of fo...
Power Apps
Unanswered

Creating 2 views of form based on single SharePoint List

(1) ShareShare
ReportReport
Posted on by 652
Hello,
 
I've a SharePoint list, where there are 10 different fields. One of the field is a drop down which has Corporate and Supplier as an option to select.
 
When Corporate is selected, we'll be asking the user to fill only specific fields i.e. field 1, 2,  3 and 4. Of which 2 and 3 fields are mandatory for the user to fill.
 
When the form is filled for corporate, allow the user to save the form to SharePoint List.
 
Similarly when Corporate is selected, we'll ask users to fill field 5 to 10. Of which field 7,8 and 9 are mandatory for users to fill.
 
When the form is filled for corporate, allow the user to save the form to SharePoint List.
 
Please note - when Corporate is selected, the form should not give an error to fill the mandate fields which will be Corporate.
 
Please advise. Thanks!
Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    hey
     
    this is easy to achieve.
     
    you just need to set the visible property (in case you want to hide the other) and the requiered property of the datacard.
     
    just follow my example i used yesterday:
    If(DataCardValue6.Selected.Value="Business meal",true,false)
    DatacardValue6 is the dropdown. you need to identify which Datacardvalue your dropdown you want to match against has and just switch the numbers. instead of business meal you need to put your value
     
     
    if that helped please mark as verified answer, 
     
    thanks in advance
  • Prem4253 Profile Picture
    652 on at
    Hi,
     
    No, this does not save the form.
     
    I just created a new SharePoint list. A choice column which has Corporate and Supplier option to select.
     
    When Corporate is selected - there are 2 fields, Vendor No. and Vendor Name
    When Supplier is selected -  there are 2 fields, Vendor No 1. and Vendor Name 1.
     
    Vendor Name and Vendor Name 1 are the mandatory field.
     
    When I select Corporate, Vendor No. and Vendor Name gets visible, the form does not saves because for Supplier dropdown option, we have made Vendor Name 1 as mandate.
  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    hey
     
    yes thats why u need to set the same formula in the visible property and requierd property. so the datacard gets visible and is requiered when Corporate is selected.
     
    same for supplier, set both properties to the same formula
  • Suggested answer
    Prem4253 Profile Picture
    652 on at
    Yes, thanks for the help.
     
    Earlier I had made the columns mandate in SharePoint List.
     
    Now this is changed in the App, setting the formula in Required property also.
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    hey
     
    you do not need to set it to requiered in sharepoint, you can do this conditionally in powerapps

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard