diff --git a/wwwroot/js/shared.js b/wwwroot/js/shared.js index 517366e..6974d49 100644 --- a/wwwroot/js/shared.js +++ b/wwwroot/js/shared.js @@ -400,7 +400,10 @@ function getAndValidateExtraFields() { } else { extraFieldInput.removeClass("is-invalid"); } - outputData.push({ name: extraFieldName, value: extraFieldValue }); + //only push fields with value in them + if (extraFieldValue.trim() != '') { + outputData.push({ name: extraFieldName, value: extraFieldValue }); + } }); return { hasError: hasError, extraFields: outputData }; } \ No newline at end of file