Multilayered date issue Populate the current date. User can edit date. Compare to 2nd user date.
this multi layered date question.
the requirement populate date field current date may or may not appropriate.
the user can edit date field appropriate. preferred format mm/dd/yy.
a second date entered , compared first date , errors if earlier first date. if either null let them be.
the user completes fields signs form starts email sequence automatically mail pdf form , name subject , body line in outlook.
here have far. of pulled forums and.
the auto populating date field works ok may breaking comparison between 2nd date.
if (vdate1.rawvalue == null){
var msnow = (new date()).gettime();
var d1 = new date(msnow);
vdate1.rawvalue = util.printd("mm/dd/yy", d1);
}
else {
vdate1.rawvalue = rawvalue;
}
the date comparison works ok have issues making sure both date entries validated correctly. want them use mm/dd/yy
if(vdate2.rawvalue <> null , vdate1.rawvalue <> null)then
if(vdate2.rawvalue < vdate1.rawvalue) then
xfa.host.messagebox("please check meter calibration due date. cannot before
the survey date!", "date checker", 3)
$.rawvalue = ""
// set focus end date field
xfa.host.setfocus(this.somexpression)
endif
endif
i using signature event call click works ok
topmostsubform.page3.signaturefield1::click - (javascript, client)
button1.execevent("click");
the click forces user save pdf , attaches email , fills in subject line. have been struggling vdate1.rawvalue appear mm/dd/yy in subject line. when work date comparisons break.
button2.event__click.submit.target = "company@company.com?subjectmailto:yourcompany@company.com?subject@yourcompany.com?subject=" + code_no.rawvalue + " " + " company" + " " + model_no.rawvalue + " " + workorder.rawvalue + " " + sserial.rawvalue + " " + vdate1.rawvalue + " " + rls_reason.rawvalue;
button2.execevent("click");
i had add several invisible variable boxes because apparently not know how initialize properly.
it seems can either :
- auto populate current date not run comparison.
- have appropriate date format appear on email subject not drop in automated current date.
- have correct format on "mm/dd/yy" no calculations run properly.
i hoping can me out here.
hi,
you try using vdate1.formattedvalue date in format specified display pattern. if haven't updated data pattern date in yyyy-mm-dd format, guessing have updated it? if data pattern , display pattern different the formattedvalue equal rawvalue when date invalid. if valid date gets formatted specified in data pattern, if not the value gets copied across is.
hope helps
bruce
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment