On uploading the XLS and trying to edit the form, it shows Error loading survey:
notify is not defined. Not sure where the problem is, here is the XLS file that might need to be changed. Unable to upload the attachment, but would appreciate help on how to get out of this error. Couldn’t find it on the community in earlier posts.
Hi @LunchBox and welcome to the community!
Can you validate your form in here to see if the are any syntax issues:
Hi there, I too just got the same error (" Error loading survey: notify is not defined") when trying to edit a form that had been deployed.
My form passes the ODK XLSForm validator perfectly so I don’t think it’s a syntax issue.
However one note regarding my form is that it uses select_one_external (i.e. has some cascading select options on an additional sheet named “external_choices”). The select_one_external doesn’t seem to work in Kobo Collect (when I swipe forward I get “File: /
storage/emulated/0/Android/data/org.koboc.collect.android/files/projects/[xxx]/forms/[formname]/itemsets.csv is missing.” I wonder if that perhaps also is related to the error onscreen in the Form Editor, in my case?
@nat, thank you for bringing this to our attention. Could you kindly share with us your sample XLSForm that returns this issue? It would be helpful for us to troubleshoot and make improvements.
You could share your sample form privately if it should be treated confidentially.
Hi @Kal_Lam this is the section of the form that’s giving me the notify is not defined if I try to edit in form builder, and an error in Kobo Collect. As mentioned, it does have a select_one_external question and a correlated external_choices sheet. I think that sheet and question is set up correctly but maybe not. It’s my understanding that for select_one_external I shouldn’t need to create my own separate .csv as it just uses the external_choices sheet - unlike the select_one_from_file question type which would’ve needed a separate csv file to be uploaded.
Is it that there is an issue with the itemset.csv creation step in the conversion from XLSForm to Xform? I don’t normally do forms with such lengthy cascading selects!
Thanks for taking a look!
Demo BenReg geohierarchy only incl select_external.xlsx (1.6 MB)
xref XLSForm Docs.
xref Problem recognizing external choices command with today's system upgrade - #12 by Kal_Lam
@nat, I just made a quick check with your XLSForm and observed that your choice filter
is still not working (in both Enketo
as well as the Collect Android App
) …
Thanks @Kal_Lam noting that even if we delete everything from choice_filter (i.e. no cascade) we still get the notify is not defined
error if trying to edit in form builder. The error is clearly something to do with the external_choices.
Appreciate any intel as to whether external_choices are meant to be supported by the Collect Android App or if it’s no longer supported.