Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Upload forms to ODK Central #227

Open
florianm opened this issue May 20, 2019 · 2 comments
Open

Upload forms to ODK Central #227

florianm opened this issue May 20, 2019 · 2 comments
Milestone

Comments

@florianm
Copy link
Contributor

Download as XML and import into ODK Central works pretty nicely so far, so this is a nice to have - import a form to ODK Central via menu would simply be a nice shortcut.

@issa-tseng
Copy link
Member

a totally reasonable request!

@florianm florianm added this to the 0.6.0 central milestone Jan 27, 2022
@florianm
Copy link
Contributor Author

florianm commented Jan 27, 2022

Implementation

Menu File > Upload Form to Central should open a modal dialogue:

  • Central project URL
  • Central username
  • Central password
  • Button: Upload form
  • Checkbox (default yes): open form after upload in new tab?

When "Upload form" is clicked:

  • Get the form list.
  • If the form ID does not yet exist in the form list: create new form. This should create a draft for the new form.
  • The form ID does exist in the form list: create draft for the existing form ID. This should create a draft for the existing form.
  • If selected, open the URL in a new tab. The user will want to test and publish the form, possibly also upload form media.

Considerations

  • Central base URL or project URL? I think project URL is better, as it's easier for users to navigate to the project they want the form to live under than to guess what a "base URL" is. Also, it will save a round trip to choose from available projects.
  • Which errors can happen? How should these be logged and handled?
  • Are the above scenarios complete? Which use case have we missed?

Edge cases

Maybe best explained in the Build docs:

  • The user wants to hand-edit the XML before upload: Export to XML > Edit > Manual upload to Central.
  • The user wants to export the XLSForm and hand-edit that before upload: Export to XLSForm > Edit > Manual upload to Central.

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

2 participants