I think this should be possible but was wondering how you would do this? I expect the changes for be in this line...
" var endDate = new Date().setDate(now.getDate()+3); "
but instead of now do I just change it to Saturday?
function SetDateto3Days()
{
if(Xrm.Page.ui.getFormType() == 1)
{
var dueDate = Xrm.Page.data.entity.attributes.get("new_date");
var now = new Date();
var endDate = new Date().setDate(now.getDate()+3);
dueDate.setValue(endDate);
}
}