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 / Conditional Formatting...
Power Apps
Unanswered

Conditional Formatting for Visibility Not working for SharePoint Customize Form.

(1) ShareShare
ReportReport
Posted on by 395
I am Customizing a SharePoint List to take in Purchase Requests. I have the list to show/ hide fields based on buttons Pushes. The form works as expected inside power apps. On SharePoint I can create a new item as the form should be ,but once I press save, all the fields show that are supposed to be hidden. 
 
Has Anyone had a similar issue?
 
Here is what it looks like after Pressing Save
 
 
 
 
 
 
What it should look like after pressing save.
 
 
 
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at
    What is the condition you are using the hide the elements and where/how do you set it ?
  • Trout19 Profile Picture
    395 on at
    Ok, I am putting this code in the visibility property of the DataCard that it field is in. 
     
    If(StatusValue.Text = "Reviews",true)
  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at
    So is StatusValue a Classic Text control and when and how do set the value on this ?
  • Trout19 Profile Picture
    395 on at
    Ok the StatusValue text property is set by a variable. Which is created on the OnNew button of the form.
     
     
  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at
    Sorry, but I am unclear here - if the Visible 
    If(StatusValue.Text = "Reviews", true)
    then it should only be visible if the variable varStatus equals "Reviews", but you are setting it OnNew to "New", which means (based on what you have posted) the fields should be hidden from the start. You must be setting it to "Reviews" somewhere for it to be visible. - you need to set it to something other than "Reviews" OnSuccess of the form. Also do not bother with the text control - just refer directly to the variable - try making the Visible (just this)
    varStatus = "Reviews"


  • Trout19 Profile Picture
    395 on at
    The status is changed by the complete button. 
     
    I changed the Visibility to  if (varStatus = "Reviews", true). The visibility is still not working. It's like the Save Button overwrites the visibility of the form. The show/hide visibility is working when I use the complete button in power apps, but I don't have the built-in save button to test with.  
  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at
    This is a logic exercise that I need you to have a think about as I cannot see your model or code. Firstly, make the Visible as I posted
    varStatus = "Reviews"
    Also if the Complete button sets the Variable to this value, then it will be visible, so where do you set it to something else to make it not visible ? I assume also that you do not set varStatus using UpdateContext somewhere.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard