-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore Survey Answers #404
Comments
@atton16 yes it is pretty clear that something is undefined. not sure whether it is the Also, the |
There is also some additional discussion and a live example in XLSForm/pyxform#30 |
Thanks, I am looking at it now. |
It appears that the correct field is So the code should looks like this: var dataStrFromValidation = '...';
var data = {
modelStr: $scope.loaded_model,
instanceStr: dataStrFromValidation,
submitted: false,
external: [],
session: {}
}; Very simple!! |
Closing, implemented in e-mission/e-mission-phone#572 |
Hi,
I am developing the survey system based on
enketo-core
as you already knows it.Right at the time the form validation is done, we can get the data using
$scope.form.getDataStr()
.I then tried to use this data by convert the return string to XMLDocument as the library suggested. Then use the data like followings:
However, there seems to be the problem with parsing XMLDocument.
See the screenshot below:
Here is the sample data returned from validation
The text was updated successfully, but these errors were encountered: