|
@@ -333,16 +333,16 @@ function getFormData() {
|
333
|
333
|
data.token = token;
|
334
|
334
|
data.custom = {};
|
335
|
335
|
|
336
|
|
- // Custom fields
|
337
|
336
|
// Select the field
|
338
|
337
|
let index = 0;
|
339
|
|
-
|
340
|
338
|
if(labels) {
|
341
|
339
|
index = 1;
|
342
|
340
|
}
|
343
|
|
-
|
|
341
|
+
|
|
342
|
+ // Iterate over all the fields
|
344
|
343
|
for(let field in DOMFields) {
|
345
|
344
|
let el = DOMFields[field].children[index];
|
|
345
|
+ // Do we need to push this field into default or custom fields?
|
346
|
346
|
if(field in customFields) {
|
347
|
347
|
data.custom[field] = el.value;
|
348
|
348
|
} else {
|