Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Conditional Formatting for Visibility Not working for SharePoint Customize Form.

(1) ShareShare
ReportReport
Posted on by 365
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:
  • WarrenBelz Profile Picture
    146,653 Most Valuable Professional on at
    Conditional Formatting for Visibility Not working for SharePoint Customize Form.
    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.
  • Trout19 Profile Picture
    365 on at
    Conditional Formatting for Visibility Not working for SharePoint Customize Form.
    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
    146,653 Most Valuable Professional on at
    Conditional Formatting for Visibility Not working for SharePoint Customize Form.
    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
    365 on at
    Conditional Formatting for Visibility Not working for SharePoint Customize Form.
    Ok the StatusValue text property is set by a variable. Which is created on the OnNew button of the form.
     
     
  • WarrenBelz Profile Picture
    146,653 Most Valuable Professional on at
    Conditional Formatting for Visibility Not working for SharePoint Customize Form.
    So is StatusValue a Classic Text control and when and how do set the value on this ?
  • Trout19 Profile Picture
    365 on at
    Conditional Formatting for Visibility Not working for SharePoint Customize Form.
    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
    146,653 Most Valuable Professional on at
    Conditional Formatting for Visibility Not working for SharePoint Customize Form.
    What is the condition you are using the hide the elements and where/how do you set it ?

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,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard