Hi All
I am trying to limit the range of dates that can be selected from the datepicker so I added some formulas to datepicker onSelect and onChange:
If(DateDiff(DatePicker1.SelectedDate,Today(),Days) > 5,
UpdateContext({DateWorning:"NO", TheDate:Today()}) ,
UpdateContext({DateWorning:"Yes", TheDate:Today()}) )
also tried
UpdateContext({DateWorning: If(DateDiff(DatePicker1.SelectedDate,Now(),Days) > 5,"NO", "Yes"),
TheDate:If(DateDiff(DatePicker1.SelectedDate,Now(),Days) > 5, Today(), DatePicker1.SelectedDate) })
but it doesnt change neither DateWorning or TheDate
Any Ideas?
Thanks