Skip to content

lsgs/redcap-auto-save-value

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Auto-Save Value

Luke Stevens, Murdoch Children's Research Institute https://www.mcri.edu.au

https://github.com/lsgs/redcap-auto-save-value/


Summary

Action tags to trigger automatic saving of field values during data entry:

  • @AUTOSAVE Auto-save the field's value when it is updated (in either data entry or survey mode).
  • @AUTOSAVE-FORM Auto-save in data entry mode only, not in survey mode.
  • @AUTOSAVE-SURVEY Auto-save in survey mode only, no in data entry mode.
  • @AUTOSAVE-FORM-HIDEICON As @AUTOSAVE-FORM, but suppress the field's save icon where in data entry mode it would normally be shown.
  • @AUTOSAVE-SURVEY-SHOWICON As @AUTOSAVE-SURVEY, but show the field's save icon where in survey mode it would normally be suppressed.

Notes

  • Auto-save cannot occur until the record exists for values to be saved to. This means that auto-save cannot work on the first page of a public survey, or when creating a new record.
  • Only one tag is required per field: you do not need to use both @AUTOSAVE-SURVEY and @AUTOSAVE-SURVEY-SHOWICON, for example. @AUTOSAVE-SURVEY-SHOWICON is sufficient alone for an auto-save field on a survey with icon shown.
  • The auto-save tags do not operate in Draft Preview mode.
  • The auto-save tags do not operate when previewing an instrument with a record data in the Online Designer using the "Preview Instrument" external module.

Limitations

The following field types are currently *not supported*:

  • Text fields with ontology lookup
  • Calculated fields (including text fields with @CALCDATE() and @CALCTEXT())
  • Checkbox
  • File upload
  • Signature
  • Slider

Auto-saving on data entry forms is *not compatible* with the "Require reason for change" option.

Example

demonstration of auto-saving values on page load and after update


About

Fields tagged with @Autosave will be automatically saved when edited.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages