Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Creating 2 views of form based on single SharePoint List

(1) ShareShare
ReportReport
Posted on by 291
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!
  • mmbr1606 Profile Picture
    11,991 Super User 2025 Season 1 on at
    Creating 2 views of form based on single SharePoint List
    hey
     
    you do not need to set it to requiered in sharepoint, you can do this conditionally in powerapps
  • Suggested answer
    Prem4253 Profile Picture
    291 on at
    Creating 2 views of form based on single SharePoint List
    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.
  • Verified answer
    mmbr1606 Profile Picture
    11,991 Super User 2025 Season 1 on at
    Creating 2 views of form based on single SharePoint List
    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
  • Prem4253 Profile Picture
    291 on at
    Creating 2 views of form based on single SharePoint List
    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.
  • mmbr1606 Profile Picture
    11,991 Super User 2025 Season 1 on at
    Creating 2 views of form based on single SharePoint List
    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard