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 / Validating input datep...
Power Apps
Unanswered

Validating input datepicker in repeating tables PowerApps

(0) ShareShare
ReportReport
Posted on by 103

I have repeating table for submit day off, see screenshot below:

LuanDT_0-1706845792153.png

I would like to make a Submit button to be disabled when the user selects a date that matches previous date data or that date is within the selected date range. Please help, thanks in advance. 

 

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @LuanDT ,

     

    Assuming that you are using SP list. Are there StartDate and EndDate columns in list?

    If so, please try this:

    DisplayMode of submit button:

    If(!IsEmpty(Filter(ListName,StartDate<=StartDate.SelectedDate&&EndDate>=EndDate.SelectedDate)),DisplayMode.Disabled,DisplayMode.Edit)

     

    Best regards,

    Rimmon

  • LuanDT Profile Picture
    103 on at

    @v-mengmli-msft I am using table but when i select date on date picker it will update my table so using your command not working

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @LuanDT ,

     

    Could you pleases show formulas on DatePicker and Submit button?

    This will help me test same method in my app.

     

     

    Best regards,

    Rimmon

     

  • LuanDT Profile Picture
    103 on at

    @v-mengmli-msft OnChange proberties of Datepicker

    Patch(DateT,ThisItem,{
     'Request ID': IDlbl.Text,
     'Start Date': DatePicker1.SelectedDate,
     'End Date': DatePicker1_1.SelectedDate,
     'Leave Type': Dropdown1.SelectedText,
     Shift: Dropdown1_1.SelectedText,
     'Total Date': Label8.Text,
     'ID Date': STT1.Text
     
    })

    On submit button I didn't path data on table because I using Onchange it will auto update data to table. If i need create new row on repeating table i click Add Row button

    OnSelect proberties of Add Row button. 

    Set(varNextID,Value(Last(DateT).'ID Date')+ 1);
    Collect(
     DateT,
     {
     'Request ID': IDlbl.Text,
     'Start Date': DatePicker1.SelectedDate,
     'End Date': DatePicker1_1.SelectedDate,
     'Leave Type': Dropdown1.SelectedText,
     Shift: Dropdown1_1.SelectedText,
     'Total Date': Label8.Text,
     'ID Date': Text(varNextID)
     }
     );

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard