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 / Can not save because o...
Power Apps
Answered

Can not save because of a hidden required field

(0) ShareShare
ReportReport
Posted on by 20

Hello,

I am building a SharePoint list using Power Apps to help input correct data. 

I have created a dropdown that is visible if Type Of Project = Execution Project

If it not an Execution Project, the selected dropdown will be hidden.

 

However the drop-down is mandatory, and I would like it to be mandatory only if visible. 

Currently I am not able to save if I select something that isn't  Execution, as the required field is now hidden.

 

How do I ensure that this drop-down is required ONLY if DataCardValue18.Selected.Value = "Execution Project"?

 

I've tried the following: If(DataCardValue18.Selected.Value = "Execution Project",true,false) 

I have also tried making two statements

If(DataCardValue18.Selected.Value = "Execution Project",true) OR If(DataCardValue18.Selected.Value = "New Product Development",false)

Flensborg_0-1656081587109.png

 

However I do not seem to be able to crack this. Does anyone have any ideas?

 

Categories:
I have the same question (0)
  • VeGETzX Profile Picture
    367 on at

    As I know, If your SharePoint column are required, So the data for that column can't be blank, regardless of any code you use on Power Apps because it's restricted by SharePoint.

     

    I do recommend to set that column to be optional on that SharePoint list and use Required property for Datacard in PowerApps.

     

    It's more flexible, then you can use this code on Required property of your Execution Project's datacard 

    DataCardValue18.Selected.Value = "Execution Project"
  • Verified answer
    Flensborg Profile Picture
    20 on at

    Thanks for the answer. I had already changed the permissions in the SharePoint column, but apparently PowerApps had not registered it. 

    The solution for me was to re-create the exact same column, and then do as you mentioned with making it "required" in PowerApps and "Not Required" in the SharePoint list settings.

     

    Thanks for your help 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard