Adding a Date Span Field to a Form

How to add a date span field to a form

Use a Date Span field to calculate the number of days between two dates. Once calculated, a date span field functions like any other number field and can be used in other calculated fields. You must have two date fields to calculate a date span. 

  1. In the Form Designer, from the Input menu, add Date inputs to the form for which you want to add a date span field. 
  2. From the Actions/Container menu in the Form Designer, click the Date Span Field input. The date span field is added to the form.
  3. Click  (Edit) open the Edit Date Span Field window.
  4. On the General tab, mark Hidden if you don’t want the date span field to display in the app. 
  5. Enter a label for the date span field. 
  6. In the Tooltip field, enter the tip/hint you may want to include for the date span field. 
  7. Select the start date and end date fields and specify if you want the start and end dates included in the calculation. For example, using a start date value of October 1, 2024, and the end date value of October 15, 2024, the date span result is determined by your selections:
    Include Start Date in Calculation Marked Include End Date in Calculation Marked Date Span Result
    No No 13
    Yes No 14
    No Yes 14
    Yes Yes 15
  8. Click the Styles tab to specify the style settings for the date span field. See Using the Styles Tab for more information. 
  9. Click the Validations tab to create a validation for the date span field. See Creating Field Level Validations for more information.
  10. Click OK to save your entries. Click Cancel to close the Edit Date Span Field window without saving changes.
  11. Click (Preview) to view how the date span will be calculated in the app. In the following example, the Include Start Date in Calculation option was marked but the Include End Date Calculation option was not marked.