I am learning to use PowerApps. While learning, I'm trying to create a form that includes two data cards: a start date and an end date. When a user chooses a start date, I want the end date to automatically be set to one week in the future. However, I still want the user to be able to set the end date. My question is, how do I automatically set the end date when the user chooses the start date?
Asked
Active
Viewed 604 times
0
-
Do you have follow-up questions? – Arun Vinoth-Precog Tech - MVP Dec 10 '19 at 21:02
-
Was my answer helpful? – Arun Vinoth-Precog Tech - MVP Jan 18 '20 at 01:39
1 Answers
0
Let's say you have two date-pickers, set the OnSelect
property of DatePicker1 to assign the calculated new date to a variable calculatedDate
.
Snippet:
UpdateContext({calculatedDate:DatePicker1.SelectedDate + 7})
Set the DefaultDate
property of DatePicker2 to calculatedDate
variable. That's it.

Arun Vinoth-Precog Tech - MVP
- 22,364
- 14
- 59
- 168