• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
      • Introduction to Data Entry
      • Data Entry Application
      • Data Entry Editing
      • CAPI Data Entry
        • Introduction to CAPI
        • CAPI Features
        • Capture Types
        • Multimedia
        • CAPI Strategies
          • Forms
          • Fields
          • Questions
          • Organization of the Instrument
          • Using Multiple Languages
          • Breaking Off the Interview
          • Coming Back Later
          • Prefilling Values
        • How to ...
      • Network Data Entry
      • Android Data Entry
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
    • Templated Reporting System
    • HTML and JavaScript Integration
    • Action Invoker
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataViewer>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

Prefilling Values

In a data entry application, it is possible to prefill fields using several approaches:
  1. Make an ID field persistent, which uses the value entered for a previous case to prefill the value for a new case. The initial values of persistent fields can be specified in a PFF.
  2. Make an ID field auto increment, which takes the value entered for a previous case and increments it by one to prefill the value for a new case. If no previous case has been entered, the value starts at 1.
  3. Use the Key attribute of a PFF to specify the initial value of the case's ID items.
  4. Use the Parameters section of a PFF to specify the initial values for non-repeating, non-persistent items.
  5. Make a repeating field sequential, which automatically increments a field on a roster, incrementing it by one on each added occurrence.
  6. Specify a value in the preproc of the field; for example:
PROC INTERVIEW_END_TIME

preproc

    INTERVIEW_END_TIME = 
timestamp();