Skip to content
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

Add 'others' to csv files #62

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from
Draft

Add 'others' to csv files #62

wants to merge 4 commits into from

Conversation

dave-mills
Copy link
Member

To try and make Enketo available for form review / submission editing, I've moved the ODK form to use select_one_from_file and select_multiple_from_file instead of search(). This means the various static options like "other", or "none" must be inside the csv files generated from the platform.

This PR does exactly that - it adds a function to the LookupEntry models that returns the correct array of data to append rows to the end of the csv files.

This might not be the best approach long-term - we probably want the user to be able to manage these entries. But for now this approach works ok to get the extra rows and make sure they are always at the bottom of the lookup lists.

@dan-tang-ssd
Copy link
Contributor

Um... it is a feature to prepare csv file when talking to ODK central?
Can we do testing for it in front end...?

@dave-mills dave-mills marked this pull request as draft May 22, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants