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 / Visible property based...
Power Apps
Answered

Visible property based on Sharepoint Created and Title column

(0) ShareShare
ReportReport
Posted on by

I have a SharePoint list, "MyList" with a single column "Title". I would like to change the visibility of a button based on whether the title is currently in the list and the SharePoint created time is within today. The objective is complete the list everyday and only allow one submission per item per day. 

The first part of the formula works (If(DataCardValue1.Text exactin MyList.Title,false,true)) but I can not seem to reference the Sharepoint created date field within this context.

 

Visible:  If(DataCardValue1.Text exactin MyList.Title,false,true) && MyList.Created >= Today()

 

I have also tried If(DataCardValue1.Text exactin MyList.Title,false,true) AND (MyList.Created >= Today()))

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    on at

    Hi @sassyx65,

     

    I don't think the formula would work.

    If here you would like to take use of <, > or =with date strings, the type of the two should be the same.

    Here MyList.Created >= Today() will not work, as the MyList.Created is not a Valid date string, it is a column.

     

    Could you please share more details about where you would like to put this button?

    If the button would be in an Gallery, then the following code should work:

    If(ThisItem.Title exactin List.Title && Not(IsToday(ThisItem.Created)),false,true)

    Further, if you would like to check if the DataCardValue exists in the items created by today, we could take use of the following way to check:

    If(
    IsEmpty(
    Filter(
    Filter(List,IsToday(Created)),
    DataCardValue1.Text exactin Title)
    ),
    true,
    false)

    Regards,

    Michael

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