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

Support for auto-send and auto-delete #165

Closed
lognaturel opened this issue Jun 12, 2017 · 6 comments · Fixed by #281
Closed

Support for auto-send and auto-delete #165

lognaturel opened this issue Jun 12, 2017 · 6 comments · Fixed by #281
Assignees
Projects

Comments

@lognaturel
Copy link
Member

Form-level directives for auto sending and/or auto deleting were recently approved at the XForms spec level: getodk/xforms-spec#100

There isn't yet an approved syntax for XLSForm: XLSForm/pyxform#126

@Dars45

This comment has been minimized.

@yanokwa

This comment has been minimized.

@issa-tseng

This comment has been minimized.

@issa-tseng issa-tseng modified the milestone: 0.3.4 Jul 28, 2017
@florianm florianm added this to Backlog in Roadmap Dec 9, 2021
@florianm florianm moved this from Backlog to To do in Roadmap Dec 14, 2021
@florianm
Copy link
Contributor

florianm commented Jan 3, 2022

XForms spec: https://getodk.github.io/xforms-spec/#submission-attributes
Example: <submission orx:auto-delete="true" orx:auto-send="false">
Former blocker XLSForm/pyxform#126 is now closed (Issa's comment hidden as outdated ;-) )

Where in the UI should these settings live? Menu > Edit > Form properties is the closest in scope.

@florianm
Copy link
Contributor

florianm commented Jan 6, 2022

Solved my confusion (https://forum.getodk.org/t/help-me-understand-xforms-auto-send-delete/36290) and took at quick stab at this while the babies are asleep.

Form Properties:
Default is to Follow ODK Collect. Nothing gets inserted into the XML.
image

Selecting "always" or "never" adds the relevant submission attributes to the XML.
image

XML exported:
image

The auto-send/delete settings get saved and restored on form load.
The input (select) needed to be added to the CSS style.
Added to the currently open PR #266.

@florianm florianm self-assigned this Jan 6, 2022
@florianm florianm moved this from To do to In progress in Roadmap Jan 7, 2022
@florianm florianm linked a pull request Jan 9, 2022 that will close this issue
@florianm
Copy link
Contributor

florianm commented Jan 9, 2022

The "select" input could use a dash of bottom margin to make the spacing to the help text identical to the text inputs.
Edit: Dash of bottom margin applied in 2a84f90 but tagged wrong issue because I have the clumsies

@florianm florianm modified the milestones: 0.5.0, 0.4.3 Jan 26, 2022
@florianm florianm moved this from In progress to To do in Roadmap Jan 28, 2022
Roadmap automation moved this from To do to Done Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

Successfully merging a pull request may close this issue.

5 participants