Page 1 of 1

Set EndDate to EventDate

Posted: 08 Mar 2018
by cmagnan
Hi,

Is it possible to set the EndDate to EventDate when I am saving the event?

Thanks
Catherine

Re: Set EndDate to EventDate

Posted: 12 Mar 2018
by Nikita Kurguzov
Dear Catherine,
Please try the following code:

Code: Select all

fd.onsubmit(function(){
	fd.field('EndDate').value(fd.field('EventDate').value());
	return true;
});