Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

exception #4

Open
MartijnR opened this issue Jul 8, 2014 · 1 comment
Open

exception #4

MartijnR opened this issue Jul 8, 2014 · 1 comment

Comments

@MartijnR
Copy link
Member

MartijnR commented Jul 8, 2014

from Maimoona:

After spending few hours on the issue I found a solution (or workaround) to get forms working on android 4.4 too.
In 4.4 device, XMLSerializer#serializeToString throws exception if it finds any invalid node value which was being ignored or handled internally somewhere in earlier versions. Dont know if its an issue with my form.json/model/form.xml but it was causing enketo.js throw exception.

Adding a if check in code (grayed text in code below) made my forms and application work.

else a("Repeat (subform) is missing bind_type.");if(m.find("instance>:first")[0]==undefined){return "";} return(new XMLSerializer).serializeToString(m.find("instance>:first")[0])

@MartijnR
Copy link
Member Author

MartijnR commented Jul 8, 2014

looks like this may be the same as #1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant