Date field using custom field renderer snippet has stopped working. It used to work fine before. Now it has stopped working and gives an error message saying required field value is not populated when trying to save the record.
Below is the snippet:
var field = arguments[0], value = arguments[1]; //set Contract expiry date to 365 days from today var c=new Date(); c.setDate(c.getDate()+365); var cYear=c.getFullYear(); var cMonth=c.getMonth()+1; var cDay=c.getDate(); value = cYear+"-"+cMonth+"-"+cDay; skuid.ui.fieldRenderers.DATE.edit( field, value );<br>