You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.
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])
The text was updated successfully, but these errors were encountered:
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])
The text was updated successfully, but these errors were encountered: