From 1cfbfbb752b46e6a0f6c32a990aae27444279ebf Mon Sep 17 00:00:00 2001 From: Matt Driscoll Date: Fri, 6 Mar 2015 15:53:53 -0800 Subject: [PATCH] #432 --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 0637f9b..8802420 100644 --- a/js/main.js +++ b/js/main.js @@ -636,7 +636,7 @@ define([ this._createFormElements(currentField, index, null); })); // if form has attachments - if (this._formLayer.hasAttachments && this.config.attachmentInfo[this._formLayer.id].enableAttachments) { + if (this._formLayer.hasAttachments && this.config.attachmentInfo[this._formLayer.id] && this.config.attachmentInfo[this._formLayer.id].enableAttachments) { var requireField = null, helpBlock, labelHTML = "", divRowContainer, divRow, divColumn1, fileBtnSpan, fileInput, fileChange, divColumn2, fileListContainer, fileListRow, fileListColumn, fileForm; userFormNode = dom.byId('userForm');