HotDocs Author WorkflowCreate a template Add placeholders Group variables in dialogs Create regions and rules Customize an interview Upload a template

Sorting a List of Answers

You can edit a Repeated region to sort an answer list before HotDocs places it into the assembled document.

To sort a list of answers

  1. Open a template for editing.
  2. Create a new repeated region or place the cursor inside an existing REPEAT field.
  3. In the HotDocs Field Editor, click the Advanced Properties expander.
  4. From the Sort repetitions by this variable drop-down, select the variable you want to use to sort the list by.
  5. Choose how you want the list ordered:
    • Sort ascending (A-Z) – orders from lowest value at the top to highest at the bottom (or alphabetically from the top down) using the variable you select
    • Sort descending (Z-A) – orders from highest value at the top to lowest at the bottom (or alphabetically from the bottom up) using the variable you select
  6. (Optional) From the Then sort repetitions by this variable drop-down, select the variable you want to sort within the list by. For example, if you first sort by vehicle type (SUV, truck, saloon, etc) you may then want to sort within each vehicle type by manufacturer.
  7. (Optional) Choose how you want the list ordered:
    • Sort ascending (A-Z) – orders from lowest value at the top to highest at the bottom (or alphabetically from the top down) using the variable you selected
    • Sort descending (Z-A) – orders from highest value at the top to lowest at the bottom (or alphabetically from the bottom up) using the variable you selected
  8. (Optional) For new repeated regions, click Add Field.