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 / Button visibility base...
Power Apps
Answered

Button visibility based on SharePoint date field

(0) ShareShare
ReportReport
Posted on by 15

Hi. I'd like to have the visibility of a button dependent on a Sharepoint Date and Time column. Basically, I need the button to show only if the date in the column field has occurred.

 

I tried doing something like this . . .

 

 

Now()>=DateValue('SPList'.'DateColumn') 

 

 

. . . but to no avail. Any help would be greatly appreciated.

Categories:
I have the same question (0)
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    You need to compare it to a particular row in your table. If you are using a Gallery try this in OnSelect:

    Set(var_Selected,ThisItem);
    Then in the Visible property of the button you can use:
    Now()>=var_Selected.DateColumn
     
    If you aren't using a gallery, you will just need to specify a particular row
  • ammdaddy Profile Picture
    15 on at

    Thanks BrianS for your reply. The button is actually on a DetailScreen. I'm new to Power Apps. How do I specify a particular row as you suggest?

  • CU24091509-0 Profile Picture
    417 on at

    @ammdaddy  

    if your gallery name is galRows on screen1

    and your form is on screen2

    On selected item on galRows navigate to sceen2 

    Set(varNewFormMode,false);Navigate(Screen2)

     

    and on sceen2 datasource for the form is your list  and item is going to be as below.

    If(!varNewFormMode,galRows .Selected)

     

    ________________________

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • ammdaddy Profile Picture
    15 on at

    Thanks Kranthi. I'm a bit more confused than when I started. 🙂   I'm not sure how your suggestion will help show/hide a button based on a the date in a DateTime column. The button's link is already set to navigate to another screen and that works fine. I just need to hide the button until after the date in a date column. 

  • Verified answer
    BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    Each field on the screen will be in it's own "Card". That card will have a label and the field. Each of those will have unique name.

    If you are using what PowerApps gives yo it will be something like DataCardValue3, so your formula will be along the lines of:

    Now()>=DataCardValue3.SelectedDate

    for whichever data card is displaying your date column

  • ammdaddy Profile Picture
    15 on at

    Thanks for your help BrianS!

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

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard