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 / Checking selected date...
Power Apps
Answered

Checking selected date matches with any of the date from one SharePoint list

(0) ShareShare
ReportReport
Posted on by 31

Hello everyone,

 

In my PowerApp, I have one dropdown field for date selection, and

I have one SharePoint list which have 'date type' (exclude time) column in it.

 

So after selecting a date I want to check if selected date matches with any of the date from SharePoint list , and if it matches disable one text input.

How can I achieve this ?
Please help.

Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello, @Being_Learner, you use the Lookup function:

     

    TextInput.DisplayMode: If(IsBlank(Lookup(SharePointListName, DateColumn=DatePicker.SelectedDate,DateColumn)),DisplayMode.Edit, DisplayMode.Disabled)

     

     

     

     

    If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

  • Verified answer
    adgkred Profile Picture
    228 on at

    Hey @Being_Learner,

     

    On the DisplayMode property of the text input, try something like that:

    If(CountRows(Filter(YourSharePointList, "Date Type" = Dropdown.Selected.Value)) > 0, DisplayMode.Edit, DisplayMode.Disabled)

    It should disable the Text input if it can find the dropdown selected value in your Sp List.

  • Being_Learner Profile Picture
    31 on at

    Hi @adgkred,

    Thank you for your solution it worked with slight modification

    If(CountRows(Filter(YourSharePointList, "Date Type" = Dropdown.Selected.Value)) = 0, DisplayMode.Edit, DisplayMode.Disabled)

    Instead of checking greater than (>) zero I have changed to equal to (=) zero then it worked as expected.
    Thank you once again. 😊

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard