hi. hopefully a simple question.
i have two date fields. one is start date, one is end date. obviously i don't want the end date ever to be earlier than the start date. can i make it an error if this is chosen? how?
Solved! Go to Solution.
Hi @cchan000
Hi @cchan000
Disable the submit button by setting displaymode property for button as
If(dateEnd.SelectedDate<dateStart.SelectedDate,DisplayMode.Disabled,DisplayMode.Edit)
Also add a label with erro message text
and set visible property of label to
dateEnd.SelectedDate<dateStart.SelectedDate
where dateStart and dateEnd are control names of date field
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
hi. this is what i put in the SECOND date picker right? The first one i leave alone?
this is what i have right now in the DATA CARD properties of the second picker.
If(FIRSTDATACARD.SelectedDate<FIRSTDATACARD.SelectedDate,DisplayMode.Disabled,DisplayMode.Edit)
FIRSTDATACARD = the datacard of the first date picker. is what i have above right?
Hi @cchan000
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
200 | |
184 | |
69 | |
43 | |
34 |
User | Count |
---|---|
341 | |
266 | |
114 | |
64 | |
64 |