On my add page, I have two dates, BeginDate and EndDate. They are often identical but sometimes several months into the future from the current date. I'm looking for a way to basically default the EndDate to to match the BeginDate once the BeginDate is filled in. I imagine I need a javascript to get the BeginDate and write it into the EndDate but I don't see any event that fires after one particular field is completed. Thoughts?
I don't want to fill the EndDate after the whole record is updated as it would take even more time to skip over EndDate then go back into that record and update it. Just trying to avoid having the user click several months out on the calendar control. Not a huge issue but a few seconds on every record adds up.
Thanks!
EDIT: So I found the Field Events dialog in the Field Properties. I added an event to the "Change" event for the BeginDate field in the "Client Before". Looks like it's working!
I don't want to fill the EndDate after the whole record is updated as it would take even more time to skip over EndDate then go back into that record and update it. Just trying to avoid having the user click several months out on the calendar control. Not a huge issue but a few seconds on every record adds up.
Thanks!
EDIT: So I found the Field Events dialog in the Field Properties. I added an event to the "Change" event for the BeginDate field in the "Client Before". Looks like it's working!
var ctrlEndDate = ctrl.getPeer('EndDate'); ctrlEndDate.setValue(this.getValue()); return false;