Ideally, there should be a way to pass a value, say removingEmptyFields, to SurveyWidget. If this value were false, we would not remove empty fields from the JSON passed to the SurveyWidget.onSubmit invocation. Then, we would expect the response to look like:
Describe the bug When no non-required elements have no answer, they are removed from the JSON passed in
SurveyWidget
'sonSubmit
method invocation.To Reproduce Submit the following survey without providing any answer to "question1".
SurveyJs json
SurveyJs answer
Expected behavior Currently, we always receive a
response.
Ideally, there should be a way to pass a value, say
removingEmptyFields
, toSurveyWidget
. If this value were false, we would not remove empty fields from the JSON passed to theSurveyWidget.onSubmit
invocation. Then, we would expect the response to look like:This could be accomplished via:
and