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

form_schema, form_schema_ext and form_xml retrieve only the latest form version #129

Open
mtyszler opened this issue Jun 12, 2021 · 2 comments
Assignees
Labels
feature a feature request or enhancement

Comments

@mtyszler
Copy link
Contributor

Feature

In its current form, form_schema(), form_schema_ext() and form_xml() retrieve the latest version of a form.

This is the most common use case. However, there are use cases in which retrieving previous versions of the form is useful, for example to compare changes over time.

To achieve this, a simple modification needs to be made to these functions.

In essence you need to replace the API url

v1/projects/{pid}/forms/{URLencode(fid, reserved = TRUE)}/fields

wtih

v1/projects/{pid}/forms/{URLencode(fid, reserved = TRUE)}/versions/{form_version}/fields

if a new parameter form_version (which can be NULL by default) is passed to the functions.


Let me know if you find this an interesting feature.

@mtyszler mtyszler added the feature a feature request or enhancement label Jun 12, 2021
@SLGiHub
Copy link

SLGiHub commented Oct 21, 2024

This would be super helpful. It would avoid missing data and media attachments as indicated here, when it is downloaded.

@florianm
Copy link
Collaborator

Coming back to this, yes this looks like a great feature and we should add this. I'm working on a branch right now and can add this within the next few days. Maybe it will fix the issue reported on the forum?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants