I have four CSV file( district, sub-district, community, governorate) linked together using ID
for Example:
in the sub-district file, there is a district_id column.
My question is how can I link it together in ODK form using cascading select_one external file.
Hi @moh1993net
have you investigated the documentation https://xlsform.org/en/#cascading-selects? There you can find a sample form as well.
If there is something you don't understand please ask or as a last resort attach your files maybe we can help.
I will do that once the form ready to use, as I have another issue that you may help solve it.
How can I add (Other) value if it's not listed in the drop down list. I tried use or_other in type column with select_one but after use the form I faced an issue: ( no such column: c_other in the externaldata (code 1)).
But the search function does not return (Other) option, as it compare the id of sub_districts with the sub_district_id inside communities csv file, so it will not find Other option as there is no id for it inside sub_districts csv file
Ok it's a more complex case and I'm not even sure if it's doable...
The search function looks like: search('filename', 'option', 'columnName', 'value')
where available options are:
startswith
endswith
contains
matches
and there is no way to use alternation like id or other for the value parameter.
@Xiphware and @LN are experts when it comes to fancy complex forms so maybe they can help?