Hello Adobe Community! I'm trying to calculate a date field to add an extra day based on the input in the original field. This is simple enough, however I would like the calculated field blank if the origin field is also blank. I seem to not be able to figure this out. What I have is this:
var date=new Date(this.getField("prodDate").value);
Genius! Thank you so much! I'm still super new at JS but this makes total sense. So my original code was always returning a value and thus doing the calculation even with no field, thus returning a useless date.