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 / Change required on hid...
Power Apps
Unanswered

Change required on hidden sharepoint field

(0) ShareShare
ReportReport
Posted on by 137

I have a sharepoint o365 list which I am editing the forms in PowerApps.  Depending on the selected item in one of the fields I am showing/hiding another fields.  This works fine.

 

I also want to tset this field as required if displayed and not if hidden - but if I try to save the form with the field hidden, the validation fails (if I change the drop down to expose the field, it is definitely that one that is failing!).

 

This is the code used: If(DataCardValue3.Selected.Value = "Physical", true, false)

 

Any ideas?  If not i'll just default the field to n/a

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,064 Most Valuable Professional on at

    Hi @StevieC ,

    I must admit I have not heard of that, but try putting it at the bottom and making all controls and the card zero height.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • StevieC Profile Picture
    137 on at

    you mean?  The code is on the Required property of the card

  • WarrenBelz Profile Picture
    156,064 Most Valuable Professional on at

    @StevieC ,

    No the Height of the object - this will effectively hide it without hiding it.

    HeightSetting.png

     

     

     

     

     

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • StevieC Profile Picture
    137 on at

    The hiding part is working fine using the visible property of the card - or do you mean that the hiding is causing the required validation to always trigger?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard