I am creating scripts to customize the description for our ticket upon Form Submission, and while I am having a lot of success in some regards, I cannot get the script to run if I include .getDate()/.getMonth()/.getYear() for my date fields.
I am trying to get the day/month/year out of a UDF field, and it seems like this should be easy, but it just won't work. The documentation says that it is pulling a Date Object, so I'm treating it as such.
I am trying simply this:
var eff=$CS.getValue("WorkOrder_Fields_UDF_DATE2");
var eff_day = eff.getDate();
var eff_month = eff.getMonth();
var eff_year = eff.getFullYear();
Just the presence of the .get fields causes the script to not run.
Not sure what I'm doing wrong, and any help would be appreciated.