I've a form that I'm trying to save to the repository. When I have the following JavaScript in the form:
$(document).ready(function () { $.getScript('http://laserfiche/Forms/js/moment.js'); $('.startmonth input').attr('readonly','true'); $('.startyear input').attr('readonly','true'); var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; $('.start input').on('change', function() { var dateSplit = $('.start input').val().split("/"); $('.startmonth input').val(monthNames[dateSplit[0]-1]); $('.startyear input').val(dateSplit[2]); var minDate = moment($('.start input').val()).format("YYYY-M-DD"); var maxDate = moment($('.start input').val()).endOf('month').format("YYYY-M-DD"); $('.end input').attr('min',minDate); $('.end input').attr('max',maxDate); }); });
which is used to limit the end date to the same month as the start date, it suspends in Forms and wont save. A look at the event viewer shows the following information:
2/1/2016 9:25:55 PM Message: Loading pages (1/6) [> ] 0% [======> ] 10% [==========> ] 17% [===========> ] 19% [============> ] 21% [===============> ] 26% [================> ] 28% [==================> ] 30% [==================================> ] 58% [==========================================> ] 71% [=============================================> ] 75% [====================================================> ] 87% [=====================================================> ] 89% QFont::setPixelSize: Pixel size <= 0 (0) [======================================================> ] 90% [============================================================] 100% Counting pages (2/6) [============================================================] Object 1 of 1 QFont::setPixelSize: Pixel size <= 0 (0) Resolving links (4/6) [============================================================] Object 1 of 1 Loading headers and footers (5/6) Printing pages (6/6) [> ] Preparing [============================================================] Page 1 of 1 Done Exit with code 1 due to network error: ContentNotFoundError Stack trace: at Laserfiche.Forms.CommonUtils.HtmlToPdfConverter.GeneratePrint(String& pdfFileLoc, String& tifFileLoc) at Laserfiche.Forms.Routing.SaveToLaserficheService.Execute(Int32 instanceId, IRoutingContext routingContext) at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)
This is the exact same JavaScript that I have on another form, which saves to the repository just fine. The JavaScript works within this form as well when filling out the form.